I would like the TextBox element to automatically increase the width to make the content visible.
When I add a TextBox element and write some text is looks like this:
When I click on OK it looks like this and I must resize the element to see all the text:
I would like it to look like this automatically:
If I insert a line break after “example”, I would like it to automatically look like this:
I prefer that this is not implemented as part of the existing “Auto resize element after editing its content” feature, as it has not unwanted side effects 🙂
2 answers
In my current version 3.802 there is a button “Auto Size” in the ToolBar, which will do, what you suggest.
I would not like to let the programm auto size it after every editing.
I get your point, but sometimes auto wrapping is preferred instead. For example, if you use TextBox to create a paragraph, you would hope it to auto wrap its content within its bounds, and not to exceed the area it suppose to occupy.
Both modes are useful, maybe a switch in the editing toolbar or an option in settings could do the trick.
This question is now closed
It seems strange, that when I hit ENTER and force a line break, then the TextBox does not get any higher. Don't you agree?
Also it seems, that the auto size only affect the height, but the width of the TextBox.
Also the auto sizing will calculate the height basing on the width you give the element, otherwise it won't know how to allocate the width and height for the element.