Add PaneElement::attached to prevent shape change