I have a virtual list containing instances of a custom ListItem subclass. I'm 
using the ListItem's as drop targets to move objects into folders. This is 
working fine. What I'm trying to figure out is how to make a list that is only 
partially visible in a scrollarea to automatically scroll up or down when I 
dragover the very top or bottom of the list (or over the scrollbar up and down 
arrows). 

Most native apps do this, and I was wondering if there is anything built into 
the framework to do this. I figure I can make the entire list droppable and use 
a dragover listener to test of the mouse is within some distance of the top or 
bottom of the list, and then make the list scroll one step up or down. 

Assuming I need to rig this up manually, what's the best way to tell if the 
mouse drag event is near the top (or bottom) of a particular widget? Would I 
compare the drag event's documentTop property to the widget's computed layout 
bounds.top? Or is there a better way to get the widget's y coordinate in a way 
that's comparable to the documentTop property? (my first attempt using 
bounds.top returned 0, even though it's not at the top of the browser---I guess 
it's relative to the parent object)

Thanks in advance for any tips!

Andrew
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to