mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 03:14:21 +03:00
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)
|
||||
width = 0;
|
||||
doc->width = width;
|
||||
if (doc->height == AUTO)
|
||||
doc->height = height;
|
||||
|
||||
ret = layout_block_context(doc, content);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user