Dynamically resizes map when used in multi-view apps.