Forum Moderators: open
The page is set so that the client area of the browser is filled up precisely. The map is contained in a div element, and the height property is set inline on the style attribute of the div.
Resizing the window results in the height property being reset to exactly fill to the bottom of the page, so that there is no need to display a scroll bar.
How can this be done, including before the page is first displayed?
Thanks in advance!
Have you considered using CSS? You could set the div's position to absolute or relative and use the top, bottom, left, right properties [w3.org] to make it fill the viewport.
Andrew