fixed reposition during minimize/maximize