--
C
B
A
--
Then I can add a new data into the list, e.g. "D":
--
D
C
B
A
--
I need to recreate the scroller whenever there is an additional data, so that the content area set is long enough for scrolling.
I'm using the below code to set the scroll area:
Code: Select all
put the left of fld "list", the top of fld "list", the right of fld "list", the formattedHeight of fld "list" into tContentRect
I output the tContentRect every time I created a scroller. The top position for both the list field and scroller group is 60.
My problem is, I would get inconsistent value for [the top of fld "list"]-- sometimes "0" (16,0,224,284- all data in the list can be viewed if scrolled), and sometimes "60" (16,60,224,284- only the top-most data cannot be seen/hidden from the scroll area).
I've tried a few values on the content area but I got no luck