ENH: fix gui alignment when minimized