From 56000c4736abf050717a1015396e48f0aa3412c9 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 17 Apr 2009 17:28:38 +0000 Subject: 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 --- render/layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render/layout.c') 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); -- cgit v1.2.3