Set text/box size according to it's content

Get help using Construct 2

Post » Fri Dec 07, 2012 10:11 am

Hello fellas,

I can't find the way, how to change the text/text box size according to it's content. There's also no option like text container auto-resize.

Any work arounds?
B
44
S
11
G
4
Posts: 507
Reputation: 7,341

Post » Sat Dec 08, 2012 3:09 am

Theres a variable in text objects called Text.TextWidth, just set the width to that number whenever needed.
B
43
S
12
G
7
Posts: 603
Reputation: 7,761

Post » Sat Dec 08, 2012 10:21 am

Thanks, didn't notice it.
B
44
S
11
G
4
Posts: 507
Reputation: 7,341


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest