From 05e8696fc444ffd4d39e9b1138e5a99a56a4680e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 20 Apr 2008 15:49:25 +0000 Subject: Improve handling of absolutely positioned table cells. Corrects positioning of "Weather" box contents on BBC homepage. svn path=/trunk/netsurf/; revision=4100 --- render/table.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'render/table.c') diff --git a/render/table.c b/render/table.c index b2fa4cd53..baa052e87 100644 --- a/render/table.c +++ b/render/table.c @@ -67,6 +67,7 @@ bool table_calculate_column_types(struct box *table) for (i = 0; i != table->columns; i++) { col[i].type = COLUMN_WIDTH_UNKNOWN; col[i].width = 0; + col[i].positioned = true; } /* 1st pass: cells with colspan 1 only */ @@ -80,6 +81,11 @@ bool table_calculate_column_types(struct box *table) continue; i = cell->start_column; + if (cell->style->position != CSS_POSITION_ABSOLUTE && + cell->style->position != CSS_POSITION_FIXED) { + col[i].positioned = false; + } + /* fixed width takes priority over any other width type */ if (col[i].type != COLUMN_WIDTH_FIXED && cell->style->width.width == CSS_WIDTH_LENGTH) { -- cgit v1.2.3