SpoutDev/Spout — Issue #1233: ListWidget scrolling (mis)behaviour
Author: desht
Created: 2011-12-13 17:09:00+00:00
State: open

See also http://forums.getspout.org/threads/listwidget-scrolling-mis-behaviour.166/

If I create a ListWidget which contains enough items that a scrollbar is needed, the scrolling behaviour is wrong: clicking any item immediately scrolls the list to the end, and the scrollbar vanishes (although it reappears if I use the scroll wheel to scroll back up).

setSelection() exhibits the same behaviour.

However my onSelected() method (I've created a class which extends ListWidget) does have the correct index parameter passed, and getSelectedItem() returns the clicked item, so it seems the list's internal state is correct, but there's a problem in rendering.

I've come across this problem while working on my ScrollingMenuSign plugin - see the https://github.com/desht/ScrollingMenuSign/blob/master/src/main/java/me/desht/scrollingmenusign/spout/SMSListWidget.java class.