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

TextField vertical alignment is wrong

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:

      Description

      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;");

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: