Constrain map window between header and footer