diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-04-20 15:49:25 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-04-20 15:49:25 +0000 |
commit | 05e8696fc444ffd4d39e9b1138e5a99a56a4680e (patch) | |
tree | 8c2849fabce4a00e2b93eded8bb393313d1b1f43 /render/box_normalise.c | |
parent | c5da2c906ce9161921d6d3145023ee1ef773638e (diff) | |
download | netsurf-05e8696fc444ffd4d39e9b1138e5a99a56a4680e.tar.gz netsurf-05e8696fc444ffd4d39e9b1138e5a99a56a4680e.tar.bz2 |
Improve handling of absolutely positioned table cells. Corrects positioning of "Weather" box contents on BBC homepage.
svn path=/trunk/netsurf/; revision=4100
Diffstat (limited to 'render/box_normalise.c')
-rw-r--r-- | render/box_normalise.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |