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

TextField vertical alignment is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.1
    • fx2.1
    • javafx

      The fix for RT-18410 changed the default vertical alignment for TextField from TOP to CENTER, but the calculation for centering the text vertically causes the text to appear too low in the available space. This becomes apparent with larger font sizes, such as when using textField.setStyle("-fx-font-size: 36pt;");

            leifs Leif Samuelsson (Inactive)
            leifs Leif Samuelsson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: