Modified the resizing functionality to react to the browser window resizing.