Page 1 of 1

[0.12.0] [kovarex] Text box made in script resizes to text size after load.

Posted: Sat Jul 18, 2015 7:12 pm
by DaveMcW
Steps to reproduce:
1. Create a gui text box inside a frame.
code
2. Start a new game.
3. Paste a long string into the text box.
4. Save/reload, or resize the game window.

Re: [0.12.0] [kovarex] Text box made in script resizes to text size after load.

Posted: Wed Aug 12, 2015 4:34 pm
by kovarex
Hmm, hard to say how should it behave.

You can always do

Code: Select all

frame.mytext.style.maximal_width = 150
to make sure it stays the same size.

To avoid confusion, I change the default root size of the textfield, to have not only minimal_width, but also maximal_width set to 150.