Restore boundaries on panel close