Generic Tab Object exhibits unexpected behavior with DetachableTabPane

Issue #54 resolved
Mitchell Hunter Hamilton created an issue

Trying to move a generic Tab from a DetachableTabPane results in its parent and all its siblings being moved removed as a group. See attached pictures and code.

P.S Tiwulfx has been excellent to work with so far. Keep up the excellent work.

Comments (2)

  1. Mitchell Hunter Hamilton reporter

    This is my sole modification to your demo code, please see below

    private DetachableTabPane createTabContent() {
            DetachableTabPane tp = new DetachableTabPane();
                    DetachableTab dt = new DetachableTab("Detachable Child Tab");
                    tp.getTabs().add(dt);
                    TabPane testTabPaneOne = new TabPane();
                    TabPane testTabPaneTwo = new TabPane();
                    Tab testTabOne = new Tab("Regular Tab #1");
                    DataFuseDesktopBaseTab testTabTwo = new DataFuseDesktopBaseTab();
                    testTabTwo.setText("Regular Tab #2");
            testTabPaneOne.getTabs().add(testTabOne);
                    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