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

TextField rendered wrong with Touch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u25, 8u60
    • javafx
    • Windows 8.1

      Create a TextField like:

      final TextField textfield = new TextField();
      textfield.setText("foo");
      textfield.setAlignment(Pos.CENTER_RIGHT);

      With Platform.isSupported(ConditionalFeature.INPUT_TOUCH) == true, set via VM argument "-Dcom.sun.javafx.touch=true" the TextFieldSkin renders the Handles and the textselection with a big offset from the Node, when text alignment is *_RIGHT.

      I found no workaround/solultion so far except for not displaying the handles.

            leifs Leif Samuelsson (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: