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

[ComboBox] initial size doesn't respond the size of the widest content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx
    • 2.2.0b11

      Attach movie.

      Code:

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

      public class JavaApplication41 extends Application {

          @Override
          public void start(Stage stage) {
              VBox root = new VBox();

              ComboBox cb = new ComboBox();
              cb.getItems().addAll("looooooooooooooooong", 22222222, 3);

              root.getChildren().addAll(cb);

              Scene scene = new Scene(root, 300, 300);
              stage.setScene(scene);
              stage.show();
          }

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

      Smth was broken between b10 and b11.

            jgiles Jonathan Giles
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: