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

FX 8 b99 : SplitPane's divider jumps around

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • javafx
    • FX 8 b99, Win 7/64

      While dragging the divider it doesn't move or jumps to ramdom positions.

      package jiraissue;

      import javafx.application.Application;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.scene.control.SplitPane;
      import javafx.scene.layout.BorderPane;
      import javafx.stage.Stage;
      import javafx.stage.WindowEvent;

      public class SplitPaneTest extends Application {

          public static void main(String[] args) {
              launch(args);
          }
          
          @Override public void start(Stage stage) {
              
              final Label labelLeft = new Label("LabelLeft");
              
              final Label labelRight = new Label("LabelRight");
              
              final BorderPane leftPane = new BorderPane();
              leftPane.setMinSize(0, 0);
              leftPane.setCenter(labelLeft);
               
              final BorderPane rightPane = new BorderPane();
              rightPane.setMinSize(0, 0);
              rightPane.setCenter(labelRight);
             
              final SplitPane splitPane = new SplitPane();
              splitPane.getItems().addAll(leftPane, rightPane);
              splitPane.setDividerPosition(0, 0.25);

              final BorderPane rootPane = new BorderPane();
              rootPane.setCenter(splitPane);
              
              final Scene scene = new Scene(rootPane, 800, 800, false);
             
              stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
                  @Override public void handle(WindowEvent event) {
                      System.exit(0);
                  }
              });
              stage.setScene(scene);
              stage.setTitle("SplitPaneTest");
              
              stage.show();
          }
      }

            psomashe Parvathi Somashekar (Inactive)
            alammersdjfx August Lammersdorf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: