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:
parent
00c0e239e1
commit
56000c4736
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue