-
Bug
-
Resolution: Not an Issue
-
P3
-
7u6
ScrollPane.setVvalue and ScrollPane.setHvalue can be overriden by automatic layout.
When I use an EventHandler to call a method which would repopulate a ScrollPane with new items and then call ScrollPane.set.vValue/hValue at the end of that method, pulse event and layout happen after vValue/hValue is set. This leads to resetting scroll bar position to 0.0.
A small NetBeans project with an example is attached. Use breakpoint on line 41 to examine call stack.
When I use an EventHandler to call a method which would repopulate a ScrollPane with new items and then call ScrollPane.set.vValue/hValue at the end of that method, pulse event and layout happen after vValue/hValue is set. This leads to resetting scroll bar position to 0.0.
A small NetBeans project with an example is attached. Use breakpoint on line 41 to examine call stack.