Scroller demo with dynamic resizing text field
Posted: Sat Jul 09, 2011 2:07 pm
I've had quite a few requests for a scroller demo that dynamically resizes. The attached stack shows a text field inside a scroller with changing content. Note: if the text field ends up smaller than the scroller, then no scrolling/bouncing takes place - if you want to always have the bounce effect even with very little content, just ensure the height of the text field never gets smaller than the height of the scroller. Content within the scroller is repositioned by code as it changes size. This is because contents of the scroller could be anything that you decide to put in there - it doesn't just have to be a text field!
Hope this is useful.
John.
Hope this is useful.
John.