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

SplitPane does respect divider settings as documented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.0
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:
    • Environment:

      This is b45

      Description

      -----------8<-----------
      SplitPane pane = new SplitPane();
          
      StackPane stack1 = new StackPane();
      stack1.getChildren().add(new Button("b1"));
          
      StackPane stack2 = new StackPane();
      stack2.getChildren().add(new Button("b1"));
          
      pane.getItems().addAll(stack1, stack2);
      pane.setDividerPositions(0.5f);
          
      Scene secene = new Scene(pane);
      stage.setScene(secene);
      -----------8<-----------

      Executing this code the pane should be devided 1:1 and the divider should be located in the center but it looks like the left most control is always getting the whole size and other components are only given their minimum widths.

        Attachments

          Activity

            People

            Assignee:
            kwwong Kinsley Wong
            Reporter:
            tschindl Tom Schindl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: