field height after orientation change
Posted: Fri May 20, 2011 2:05 pm
Hi all,
I have a field displayed on the page with a long rtf text, and its scrolling is handled with
a native scroller object.
My app will handle any orientation so when the device orientation is changed to landscape, the width of the field and of the group containing it is changed accordingly.
Now my question is: since the text is wrapped, having a larger field will result is a shorter height of the text to be displayed, how can I obtain it to update the contentRect parameter of the scroller object?
thank you,
Giulio
I have a field displayed on the page with a long rtf text, and its scrolling is handled with
a native scroller object.
My app will handle any orientation so when the device orientation is changed to landscape, the width of the field and of the group containing it is changed accordingly.
Now my question is: since the text is wrapped, having a larger field will result is a shorter height of the text to be displayed, how can I obtain it to update the contentRect parameter of the scroller object?
thank you,
Giulio