Possible Duplicate:
Resizing google map according to browser resizing
So normally google maps using the js api would look like this…

Now if I was to refresh the page, with the developer tools up, and then put the developer tools down a bit it looks like this.

So I want to know how I can get it to redraw the controls and resize the map when the window is resized. I tried this code here. But no go…
#map_canvas {width:100%;height:100%;position: absolute; top: 42px; left: 0; right: 0;
bottom:0; z-index: 1; overflow: hidden; }
Set the style attributes on #map_canvas when the window.onresize event occurs:
A jQuery equiv taking into account the 42px at the top