Automatically adjust map frame according width/height of its parent.