I have a piece of code that creates a new Textbox this way:
new fabric.Textbox('Ajouter du texte')
The problem is the text box is to small compare to its content:
If I set a fixed width, I get some padding around:
new fabric.Textbox('Ajouter du texte', {width: 350})
How can I adjust the text box size to match the text selection size? I can't find anything about how to get the selection dimensions.
I'm using fabric version 4.0.0-beta.5.


