Box b = root.getElementBounds();
boolean right = px >= (b.x + b.w / 2);
// mouse location
NodeLocation ml = right ? NodeLocation.RIGHT : NodeLocation.LEFT;
boolean up = py < (b.y + b.h / 2);
boolean isRoot = root.getLocation() == NodeLocation.ROOT;
if (root.getLayoutChildren().isEmpty()) {