Page 1 of 1

Label - Fit Content

Posted: Thu Feb 05, 2015 4:02 pm
by noelf
I see where you can have a field "fit content" in the object inspector.

I would like to do this while running, and I can't seem to find an equivalent command. I'm sure I'm missing something easy :)

- Noel

Re: Label - Fit Content

Posted: Thu Feb 05, 2015 4:28 pm
by Klaus
Hi noel,

not sure, but I think LC uses something like this in that button:
...
## Example to fit a button "xyz" to its loooooong label
lock screen
set the width of btn "xyz" to the formattedwidth of btn "xyz"
set the height of btn "xyz" to the formattedheight of btn "xyz"
unlock screen
...


Best

Klaus