Hi,
There seems to be an issue with the ListBox’s slider.
When i use the slider manually everything works. But if i try to implement autoscroll with:
RangedValueModel.setValue(0);
or
RangedValueModel.setValue(RangedValueModel.getMinimum());
it scrolls not to the last item, but to the penultimate item.
consoleView.getOutputList().add(new Label(text, new ElementId("listbox." + outputType.name() + ".label"), "console"));
if (this.consoleView.getOutputList().size() > CONSOLE_OUTPUT_HISTORY) {
this.consoleView.getOutputList().remove(0);
}
RangedValueModel model = consoleView.getOutputListbox().getSlider().getModel();
model.setValue(model.getMinimum());