Reputation: 3867
Is there a way in draw.io, to autosize a text container, keeping it's width
fixed, and telling draw.io
to only adjust the height if neccessary?
I tried out almost all options in the properties of the text box, but when I apply the autosize, it always overwrites my set width and height, by making the width larger, and the height smaller.
I am putting these texts inside a swimlane
, and what I would like to achieve is, either:
when I add text to these text rectangles, the rectangle
and the swimlane
should expand automatically, but only vertically, ie, only the height of it should change (this would be the best for me, so that it is automatic)
if the automatic solution is not achievable, I would be happy with something like manually pressing the autosize button, and draw.io
should keep my width fixed, and change the size of the height only.
Upvotes: 6
Views: 10241
Reputation: 1
I tried it for text boxes, but it also worked for re-sizing a cell-height in a table this way:
Please note that word wrap does not need to be activated.
Upvotes: 0
Reputation: 57
I think these are the two settings you want to toggle on for the object to make it:
I'll be honest; I, personally, would like to make it expand downwards always, but it seems like that isn't possible
Upvotes: 1
Reputation: 33036
Couldn't find any documentation anywhere. But I notice that the behaviour of auto wrap is different depending on the object type that you choose. For example,
The above one is a "Rectangle". it won't resize the width when auto-sizing. The bottom one is a "UML/Object". It will resize both the width and height.
Upvotes: 1