Removing a costly getboundingclientrect when entering edit mode.