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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: