This code make the map\'s div width max but height to 0 (the % value doesn\'t matter, it\'s always 0)
in case you use jquery, this works perfectly to 'stretch' your map to the container div holding it, notmatter what your css has set for the map :
$(window).resize(function () {
//$('#log').append('Handler for .resize() called.');
var canvasheight=$('#map').parent().css('height');
var canvaswidth=$('#map').parent().css('width');
$('#map').css("height", canvasheight);
$('#map').css("width", canvaswidth);
});
You would call this early btw, ideally in a $(document).ready(function(){ /* here */ } block.