Make all sizes set explicitly by the map resize method

I have removed most of the references to the rendered sizes of the DOM elements because they are not reliable in dynamic pages.