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

SplitPane resize weighting

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: fx2.0
    • Fix Version/s: 8
    • Component/s: 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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: