diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-01-28 00:58:31 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-01-28 00:58:31 +0000 |
commit | 49fce64c1a9a76e8ef9062e90932df3f55073508 (patch) | |
tree | fe75361b99017dd575f1aef41cf00a8ab2e286f5 /render/layout.c | |
parent | 48bdeb34c87d2124ce0bfbd885e14b1bb1695ce2 (diff) | |
download | netsurf-49fce64c1a9a76e8ef9062e90932df3f55073508.tar.gz netsurf-49fce64c1a9a76e8ef9062e90932df3f55073508.tar.bz2 |
Fix vertical position of images with margin/borders/padding.
svn path=/trunk/netsurf/; revision=3785
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
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]; } |