Page 1 of 1
Programmatic Fit Content?
Posted: Sun Jun 23, 2013 3:34 am
by SteveTX
Is there a programmatic way to change a field size to the appropriate height and width for my dyanmic content? I don't want it to be any larger than it has to as it will have actions associated with it for a mobile screen size.
Re: Programmatic Fit Content?
Posted: Sun Jun 23, 2013 5:17 am
by Simon
Hi Steve,
Does:
set the width of fld 1 to the formattedWidth of fld 1
set the height of fld 1 to the formattedHeight of fld 1
Help you?
Maybe it's just:
set the rect of fld 1 to the formattedRect of fld 1
Simon
Re: Programmatic Fit Content?
Posted: Mon Jun 24, 2013 2:09 am
by SteveTX
Perfect. Simon, you're awesome.