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

Error render SplitPannel with TreeView.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u21
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      java version "1.7.0_21"
      Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
      Windows version have the same problem.

      Description

      When nesting SplitPanes with two or more items (which one of them the TreeView or ListView).
      If setting divider to 1 (or 0 positon related) and then setting in previous value TreeView is not rendering.
      SplitPanel
       |-SomeItem
       |-Anchor
          |-TreeView
      if change position divider manualy after that treeView rendering.
      if change to another position (saved + 0.1) it works correct.

      there code
      ==============
          private Boolean itemsOpen;
          private Double value;

          public void onClickHideShowButton(ActionEvent actionEvent) {
              if (itemsOpen == null) {
                  itemsOpen = Math.round(splitPane.getDividers().get(0).getPosition() * 10) != 10;
              }
              if (itemsOpen) {
                  //save divide position
                  value = splitPane.getDividers().get(0).getPosition();
                  splitPane.getDividers().get(0).setPosition(1);
                  itemsOpen = false;
              } else {
                  //load saved position
                  splitPane.getDividers().get(0).setPosition(value);
                  itemsOpen = true;
              }
          }

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              adyominjfx Andrey Dyomin (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: