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

SplitPane resize weighting

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • 8
    • fx2.0
    • javafx

    Description

      Following on from the discussion here: https://forums.oracle.com/forums/thread.jspa?threadID=2304184

      It would be nice to be able to influence the resize behaviour of a SplitPane.

      Currently, all of the space gained/lost by resizing a SplitPane is allocated to the last division. I would like to be able to allocate that space to a different division, or to distribute it among all of the divisions according to weight.

      In terms of API, I imagine it could look similar to:
      {code}
      SplitPane splitPane = new SplitPane();
      splitPane.getItems().add(new StackPane());
      splitPane.getItems().add(new StackPane());
      splitPane.getItems().add(new StackPane());

      splitPane.setResizeWeights(0.8, 0.2, 0) ;
      {code}

      Attachments

        Activity

          People

            ekrejcir Eva Krejčířová (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: