-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P3
-
Affects Version/s: 7u6
-
Component/s: javafx
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.