From 21dd10bcda429ec05b3859be80efe37832e17257 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 7 May 2006 17:20:18 +0000 Subject: Fix float positions after a block with a specified height. svn path=/trunk/netsurf/; revision=2598 --- render/layout.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'render/layout.c') diff --git a/render/layout.c b/render/layout.c index a5d42cecc..d7921ed0a 100644 --- a/render/layout.c +++ b/render/layout.c @@ -322,6 +322,9 @@ bool layout_block_context(struct box *block, struct content *content) break; if (box->height == AUTO) box->height = y - box->padding[TOP]; + else + cy += box->height - + (y - box->padding[TOP]); cy += box->padding[BOTTOM] + box->border[BOTTOM]; if (max_pos_margin < box->margin[BOTTOM]) @@ -559,9 +562,11 @@ int layout_solve_width(int available_width, int width, return width; } + /** * Position a box tree relatively */ + void layout_position_relative(struct box *root) { struct box *box; @@ -604,9 +609,11 @@ void layout_position_relative(struct box *root) } } + /** * Compute a box's relative offset as per CSS 2.1 9.4.3 */ + void layout_compute_relative_offset(struct box *box, int *x, int *y) { int left = 0, right = 0, top = 0, bottom = 0; -- cgit v1.2.3