How do I find out if a specific element is visible(to the eye) or not whn a lot of elements are in a vbox and it has a scroller on it? Initially it is somewhere int he bottom and when I keep scrolling down it appears, probably I might need an event or indication should be there for me that it is visible. Is it possible?
May be not a perfect answer, but seems to work for me.
Call yourElement.getVisibleRect(vbox) function, which returns a Rectangle object.
If the rectange has non-zero width and height, the object is visible and width and height tells you how much of it.
The rest is simple to figure out.
That works in Spark too.
Hopefully that helps.
Thanks.. figured out that.. did somewhat same! thanks a lot!