re-added the map resize event handler