scrollerDidScroll problem

Ender Nafi Elekcioglu endernafi at gmail.com
Mon Dec 2 17:55:33 EST 2013


@Nicolas,
どういたしまして  :)


@Pyyhtiä,
Really, there’s no bug.
There may be two kinds of problems, it’s most likely the first one:
1. Making a mistake setting the scroller
2. Making a mistake constructing the scrolling group {unbounded scroll thing, setting the rect wrongly, etc.}

I’ve noticed that you wrote “0,0 to the bottom and right”.
You shouldn’t set the bottom and right, you must put the formattedWidth and formattedHeight.

Here’s a longer -still not complete- code sample, it should give you an idea:

_/* assuming that the real rect of scrolling group is 100,100,400,2000 and you want it to be scrolled only vertically. */

_set the rect of group “scrollingGroup” to 100,100,400,400 
_set the unboundedVScroll of group “scrollingGroup” to true
_put 100,100,400,400 into tRect
_put 0,0,the width of group “scrollingGroup”,the formattedHeight of group “scrollingGroup” into tContentRect
_
_mobileControlSet sScrollerID, “rect”, tRect
_mobileControlSet sScrollerID, “contentRect”, tContentRect


Hope it helps…

Best,

~ Ender Nafi


On December 2, 2013 at 7:49:47, Pyyhtiä Christer (christer at mindcrea.com) wrote:

I found exactly the same with my Android devices. Making sure the rect was from 0,0 to the bottom and right did not help. The exact number of lines missing from the top is six. It is most probably a bug, but as went around it and it is not disturbing at this moment, haven't made a bug report, yet. Thanks for reminding, need to check once again and report. 

rgds 
_______________________________________________ 
use-livecode mailing list 
use-livecode at lists.runrev.com 
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 
http://lists.runrev.com/mailman/listinfo/use-livecode 


On December 2, 2013 at 7:25:16, Nicolas Cueto (niconiko at gmail.com) wrote:

Ender, 

That did the trick. 

("OK Google, what's ありがとう in Turkish?") 

Teşekkür ederim! 

-- 
Nicolas Cueto 


More information about the Use-livecode mailing list