Error render SplitPannel with TreeView.

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • 8
    • Affects Version/s: 7u21
    • Component/s: javafx
    • 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.

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

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

              Created:
              Updated:
              Resolved:
              Imported: