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

Button size should not depend on vertical alignment type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      promotion build 40

      Description

      run attached application twice:
      with line 28: h.setAlignment(Pos.TOP_CENTER);
      and with h.setAlignment(Pos.BASELINE_CENTER);

      see screenshots:
       - with TOP_CENTER, button's height is resized up to the height of hbox container.
      - with BASELINE_CENTER, button's height is resized to some resonable default value.

      expected: behavior should not depends on vertical alignment type

        Attachments

          Activity

            People

            • Assignee:
              kwwong Kinsley Wong
              Reporter:
              vshubov Victor Shubov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: