summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-10-12 21:45:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-10-12 21:45:38 +0000
commit79978eafcdd04001554350390b3bdbcb83063d3e (patch)
tree370d02450f82e9fcafb0bc2602cabe2d67580173
parent1a237535f78c91e8dc6ae2af2385cf96f6e2e6ea (diff)
downloadnetsurf-79978eafcdd04001554350390b3bdbcb83063d3e.tar.gz
netsurf-79978eafcdd04001554350390b3bdbcb83063d3e.tar.bz2
Set float_container before float layout. Fixes percentage height on floated elements.
svn path=/trunk/netsurf/; revision=5552
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 0ce9ab995..ee5dde5c3 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -1705,6 +1705,7 @@ bool layout_line(struct box *first, int *width, int *y,
LOG(("float %p", b));
d = b->children;
d->float_children = 0;
+ b->float_container = d->float_container = cont;
if (!layout_float(d, *width, content))
return false;
@@ -1775,7 +1776,6 @@ bool layout_line(struct box *first, int *width, int *y,
box_dump(stderr, cont, 0);
assert(0);
}
- b->float_container = d->float_container = cont;
b->next_float = cont->float_children;
cont->float_children = b;
split_box = 0;