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

FX 8 b99 : SplitPane's divider jumps around

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      FX 8 b99, Win 7/64

      Description

      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();
          }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: