Subviews automatically adjust their size to fit window when other subviews are closed