Youks wrote:Hi All,
I've been reading all the posts regarding scrolling (datagrid & the rest), but i am still lost (sorry)!
I am having a list of 4600 items that i want to see through a scroller (scripted or MobGui one) indexed like the address book,for which any line can be clickable.
I looked to the samples but none of them allows me to scroll through the entire list.
....
I Youks,
I don't know if RunRev has solved the problem on LC 5.5 (
... I'm still on SnowLeopard using LC 5.0.2) but, for sure, up to LC 5.0.2 there is a serious bug on the 'iOS Native Scroller' (
... confirmed to me by an exchange of emails with the support) ...
I too have very big list in 'iOS Native Scroller' (
... tens of thousands of lines coming from databases) and I discovered that ...
... who implemented 'iOS Native Scroller' has probably made the mistake to use for the 'scroller height' a ...
16 bit signed integer
This means that, when the height of your scroller (
height in pixel of one line x number of lines) in pixel is more than
32767, it produces an overflow and the scroller stop to work
At moment, the only solution that I found is to do not use MobGui, to use directly the LC iOS Native Functions and to use a 'scale factor' ...
1. calculate the total height (height of a single line x number of lines)
2. if > 32000 the scaleFactor is the height / 32000 and the scroller height is fixed to 32000
3. on the '
on scrollerDidScroll' you set the dgVScroll NOT to the OffsetY but to the OffsetY * scaleFactor
In this way you scroll minimum of scaleFactor pixels but your scroller never exceeds the 32767 value
I hope I was clear ... not so easy to explain ...
Guglielmo
Addendum : I just verified in the 'Quality Center' and the bug 9899 seems to have been resolved in LC 5.5.0-dp1 