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

GridPane: vertical grow priority of the child seems to use incorrect height when shrinking control

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • 8
    • fx2.1
    • javafx
    • Windows 7 64-bit, Java 1.7.0_02 64-bit, JavaFX 2.1 b08 64-bit

    Description

      When shrinking a GridPane, it looks like the layout algorithm uses an improper height value for children which have a vertical grow priority set to Priority.NEVER
      See attached code.
      In this code the expected behavior for the TextField instances is to never shrink smaller than their default height.

      If the GridPane's height is increased past its normal height, the height of the TextField instances does not increase -> this is the correct and expected behavior.
      If the GridPane's height is decreased past its normal height, the height of the TextField instances shrinks until it reaches a certain point (the minimal height?) -> this is NOT the correct behavior.

      => as we specified a vertical grow priority of Priority.NEVER, each TextField's height should remain the default height no matter if we increase or shrink the height of the GridPane.

      Attachments

        Activity

          People

            ekrejcir Eva Krejčířová (Inactive)
            fbouyajfx Fabrice Bouyé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: