this.root = root;
Surface old = fromBox(root);
if (old != null) old.dispose(false);
- else root.remove();
+ else root.put("thisbox", null);
// make sure the root is properly sized
do { abort = false; root.reflow(root.width, root.height); } while(abort);