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

ScrollPane content alignment is wrong when one or more ScrollPane policies are set to something !=NEVER

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • emb-8u6, 8u20
    • 7u9
    • javafx
    • Windows 8 Pro x64, Java 7u9 64bit, JavaFX 2.2.3

    Description

      To reproduce use the attached faulty.fxml and preview it. See also attached Flash file.

      One would expect that on resize, the ScrollPanes content is aligned to the left top corner. But if at least one of the policies is set to ALWAYS or AS_NEEDED, and the user scrolls a bit or totally to the end of the content, the alignment is messed up. Using ScenicView, i saw that the coordinates layoutX and layoutY of the StackPane that internally holds the ScrollPanes content are going > 0, which just should not happen(at least this is what i would expect).

      If this is not considered a bug, please provide a workaround on how to keep the StackPane at(0;0).

      Attachments

        Activity

          People

            dgrieve David Grieve
            dweberjfx David Weber (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: