From 49fce64c1a9a76e8ef9062e90932df3f55073508 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Jan 2008 00:58:31 +0000 Subject: Fix vertical position of images with margin/borders/padding. svn path=/trunk/netsurf/; revision=3785 --- render/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/layout.c') diff --git a/render/layout.c b/render/layout.c index d00cf6af4..02374e755 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1505,7 +1505,8 @@ bool layout_line(struct box *first, int *width, int *y, d->x += x0; d->y = *y - d->padding[TOP]; } - if (d->type == BOX_INLINE_BLOCK) { + if ((d->type == BOX_INLINE && (d->object || d->gadget)) || + d->type == BOX_INLINE_BLOCK) { d->x += x0; d->y = *y + d->border[TOP] + d->margin[TOP]; } -- cgit v1.2.3