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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.1
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: