summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-10-16 20:50:48 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-10-16 20:50:48 +0000
commitf33fd2c604a2e1d332211db3cc5147b23920c685 (patch)
tree8dd9a51225457e7944604272f3e5c2cd9d9c1674
parente4407cd7e9b9313f6fde24ff503e011823129680 (diff)
downloadnetsurf-f33fd2c604a2e1d332211db3cc5147b23920c685.tar.gz
netsurf-f33fd2c604a2e1d332211db3cc5147b23920c685.tar.bz2
Take into account variations in text line height due to styled inlines when laying out inline containers.
svn path=/trunk/netsurf/; revision=5587
-rw-r--r--render/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index b46d554ca..34d4933cb 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -2039,6 +2039,8 @@ bool layout_line(struct box *first, int *width, int *y,
if (used_height < h)
used_height = h;
}
+ if (d->type == BOX_TEXT && d->height > used_height)
+ used_height = d->height;
}
assert(b != first || (move_y && 0 < used_height && (left || right)));