Making map resize to fit window when panel is open or closed