Trying today, with a complete test-case, we see things work as expected, without errors.
Here's our test-case
Code:
// narrow stack VStack stack = new VStack(); stack.setWidth(300); // narrow layout, clipping content VLayout layout = new VLayout(); layout.setWidth(300); layout.setOverflow(Overflow.HIDDEN); // but containing a wide canvas Canvas c = new Canvas(); c.setWidth(500); c.setBackgroundImage(Canvas.getImgURL("[SKINIMG]actions/edit.png")); layout.addMember(c); // scrollbar attached to the clipped layout Scrollbar scrollbar = new Scrollbar(); scrollbar.setVertical(false); scrollbar.setScrollTarget(layout); stack.addMember(layout); stack.addMember(scrollbar); stack.draw();
Leave a comment: