I'm here to ask a little question.
I'm using a native scroller for a group in a card of the stack.
After the creation of the scroller I set the "vscroll" property of the scroller to the formattedHeight of the group to scroll because I want to initialize my group starting from its bottom.
My code sound like this:
Code: Select all
put the rect of myGroup into tRect
put 0 into item 2 of tRect
put formattedHeight of myGroup into item 4 of tRect
mobileControlSet "scroller_notizia", "rect", the rect of myGroup
mobileControlSet "scroller_notizia", "contentRect", tRect
mobileControlSet "scroller_notizia", "visible", "true"
mobileControlSet "scroller_notizia", "hscroll", 0
mobileControlSet "scroller_notizia", "vscroll", item 4 of tRect
mobileControlSet "scroller_notizia", "canBounce", "true"
mobileControlSet "scroller_notizia", "pagingEnabled", "false"
mobileControlSet "scroller_notizia", "canScrollToTop", "true"
There's something wrong in my script or is a bug in the engine?!
Thank you very much for your replies!