From 882c04c2fb5b4f110bd6672f4b79877b7df85d8b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Jan 2008 02:01:04 +0000 Subject: [PATCH] Only needed the vertical position changed. svn path=/trunk/netsurf/; revision=3789 --- render/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render/layout.c b/render/layout.c index 02374e755..e9f356e11 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1507,9 +1507,11 @@ bool layout_line(struct box *first, int *width, int *y, } 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]; } + if (d->type == BOX_INLINE_BLOCK) { + d->x += x0; + } if (d->type == BOX_INLINE_BLOCK && (d->style->position == CSS_POSITION_ABSOLUTE || d->style->position == CSS_POSITION_FIXED))