summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 17:28:38 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 17:28:38 +0000
commit56000c4736abf050717a1015396e48f0aa3412c9 (patch)
tree6d516cbd3b357e0a134b190a64291790ab77e595 /render/layout.c
parent00c0e239e168c83583522ed3f24d9eca8c7a20d6 (diff)
downloadnetsurf-56000c4736abf050717a1015396e48f0aa3412c9.tar.gz
netsurf-56000c4736abf050717a1015396e48f0aa3412c9.tar.bz2
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
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index 6383d8057..05b668aad 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -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);