Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127541

ScrollPane.setVvalue and ScrollPane.setHvalue can be overriden by automatic layout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7u6
    • 7u6
    • 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.

            miflemi Mick Fleming
            ilatyshe Irina Grineva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: