     @Pane      ?= thisPane.constructor
     @PaneAxis  ?= root.constructor
 
-    parent.removeChild(thisPane, true)
+    # parent.removeChild(thisPane, true)
     if root.getOrientation() isnt orientation
       @debug "Different orientation"
       root = new @PaneAxis({container, orientation, children: [@copyRoot(root)]})


    container.setRoot(root) if root isnt paneInfo.root
    container.destroyEmptyPanes()
    # @reparentPaneAxis(axis) for axis in @getAllAxis(root)
    newPane.activateItemAtIndex index
    newPane.activate()


    newRoot = @copyPaneAxis(root)
    root.destroy()
    for paneAxis in @getAllAxis(newRoot)
      newPaneAxis = @copyPaneAxis paneAxis
      paneAxis.parent.replaceChild paneAxis, newPaneAxis
      paneAxis.destroy()
