If we calculate the height of the root box to be AUTO, set it to the viewport height before laying out the document (makes html, body { height: 100%; } behave correctly)

svn path=/trunk/netsurf/; revision=7127
This commit is contained in:
John Mark Bell 2009-04-17 17:28:38 +00:00
parent 00c0e239e1
commit 56000c4736
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ bool layout_document(struct content *content, int width, int height)
if (width < 0) if (width < 0)
width = 0; width = 0;
doc->width = width; doc->width = width;
if (doc->height == AUTO)
doc->height = height;
ret = layout_block_context(doc, content); ret = layout_block_context(doc, content);