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/box_normalise.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'render/box_normalise.c') diff --git a/render/box_normalise.c b/render/box_normalise.c index 2df859025..757ba4bb6 100644 --- a/render/box_normalise.c +++ b/render/box_normalise.c @@ -542,6 +542,12 @@ bool box_normalise_table_row(struct box *row, if (!style) return false; css_cascade(style, &css_blank_style, NULL); + if (child->style && (child->style->position == + CSS_POSITION_ABSOLUTE || + child->style->position == + CSS_POSITION_FIXED)) { + style->position = child->style->position; + } cell = box_create(style, row->href, row->target, 0, 0, c); if (!cell) { -- cgit v1.2.3