Fix resizing to adjust stage after maximize.