effective panel resize window fix