title: OpenLayers Google Map Resize Issue
body: <p>I am using OpenLayers in my project , but i have a problem with resizing. When i open my bigger -which is bigger div- map , map does not cause a problem, however when i open my map in small div, map does not resize itself.</p>
  <p>I have tried couple things to solve this problem:</p>
  <hr />
  <pre><code> window.onresize = function()
          {
            setTimeout( function() { map.updateSize();}, 200);
          }
  </code></pre>
  <hr />
  <p><code>$(window).trigger('resize');</code></p>
  <hr />
  <pre><code>  function resize() {
        var div = $('#map');
        div.height(
          Math.max( div.height() + ($(window).height() - $('body').height()), 300 )
        );
        map.updateSize();
      }
  </code></pre>
  <hr />
  <p>I have also tried to update library file.</p>
  <p><a href="http://trac.osgeo.org/openlayers/attachment/ticket/2828/openlayers-2828.patch" rel="nofollow noreferrer">http://trac.osgeo.org/openlayers/attachment/ticket/2828/openlayers-2828.patch</a></p>