fix hidden subview reappearing when window is resized.