This is probably obvious, but I'm having a heck of a time getting a widget off screen in the viewport to scroll into view. Assume I have VLayout with Overflow set to Auto, and I've added 3 members to it a, b, and c. Like this:
I'd then like to do something like:
that would scroll down to c bringing it into view. How do I do this?
Thanks!
Code:
VLayout canvas = new VLayout(); canvas.setOverflow(Overflow.AUTO); ... VLayout a = new VLayout(); .. canvas.addMember(a); VLayout b = new VLayout(); .. canvas.addMember(b); VLayout c = new VLayout(); .. canvas.addMember(c);
Code:
canvas.scrollTo(c)
Thanks!
Comment