Automatic text box resizing overrides CSS size

Bugs will be moved here once resolved.

Post » Thu Jun 28, 2012 6:49 pm

I use the set CSS style action on text boxes to change the font size as was recommended to me here.

As of r95 it doesn't work anymore. I believe this is due to the quoted change because changing the layer scale changes the font size.

I think if the user sets a font size manually, the automatic system should respect that.

"Button, Text Box: now automatically adjusts the font size depending on the layer scale"

CAPX: https://www.dropbox.com/s/gtifwnpqcqe4zfb/textboxresizefail.capxwgfunstorm2012-06-28 18:56:43
B
22
S
9
G
5
Posts: 122
Reputation: 5,386

Post » Fri Jun 29, 2012 1:54 pm

Hmm... we need it both ways, so for the next build I've added an 'Auto font size' property for text box. 'Off' will not apply the layer scale adjustment so your example works, and 'On' will scale it so other users who complained about lack of scaling get their way too. Hopefully that will fix it for everyone.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Fri Jun 29, 2012 2:08 pm

Cool thanks.
B
22
S
9
G
5
Posts: 122
Reputation: 5,386


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests