Child DetachableTabs promoting to Parent

Issue #55 wontfix
Mitchell Hunter Hamilton created an issue

Thank you so much for the swift response, regarding Issue #54. In testing for correctness with the previous issue, I ran into another bug. A parent DetachableTab with a DetachableTabPane as content with DetachTable Tabs inside of it exhibits some unexpected issues. Those child Tabs can be dragged to their parent's level and dropped there, breaking the parent/child hierarchy.

Comments (2)

  1. Mitchell Hunter Hamilton reporter

    I only modified your createTabContent() method from the demo code, please consult below

     private DetachableTabPane createTabContent() {
            DetachableTabPane tp = new DetachableTabPane();
                    DetachableTab dt = new DetachableTab("Detachable Child Tab");
                    tp.getTabs().add(dt);
                    DetachableTabPane testTabPaneOne = new DetachableTabPane();
                    TabPane testTabPaneTwo = new TabPane();
                    DetachableTab testTabOne = new DetachableTab("Detachable Tab #1");
                    DetachableTab testTabThree = new DetachableTab("Detachable Tab #2");
                    DataFuseDesktopBaseTab testTabTwo = new DataFuseDesktopBaseTab();
                    testTabTwo.setText("Regular Tab #2");
            testTabPaneOne.getTabs().add(testTabOne);
                    testTabPaneOne.getTabs().add(testTabThree);
                    testTabPaneTwo.getTabs().add(testTabTwo);
                    SplitPane sp = new SplitPane();
                    sp.getItems().add(testTabPaneOne);
                    sp.getItems().add(testTabPaneTwo);
                    dt.setContent(sp);
    
    
            return tp;
        }
    
  2. Log in to comment