Temporarily moved resizing code to minimap-toggle.