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

[ComboBox] Unable to scroll to the end of text in editable ComboBox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Environment:

      2.2.0-b21

      Description

      package javaapplication3;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ComboBox;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.HBox;
      import javafx.stage.Stage;

      public class JavaApplication3 extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage stage) throws Exception {
              
              ComboBox<String> cmb = new ComboBox<>();
              cmb.setEditable(true);
              
              TextField tf = new TextField();

               tf.textProperty().bind(cmb.getEditor().textProperty());

              HBox root = new HBox(10d);
              
              root.getChildren().addAll(cmb, tf);
              Scene scen = new Scene(root, 300, 200);
              stage.setScene(scen);
              stage.show();
          }
      }

      Steps to reproduce:
      1. Type 123456789 in ComboBox text field.
      2. Click on ComboBox and press end.
      3. You will notice that last digits are hidden by the drop down button

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              dzinkevi Dmitry Zinkevich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: