diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-07 21:39:06 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-07 21:39:06 +0000 |
commit | 9c0eda1d2cb2b5cde20abfab17125ed248a91062 (patch) | |
tree | d7b0e7a9842bca074279113f35ae9da87b3d7c2b /render | |
parent | 5141da86fdbabf11cc0c864625004a14b96c0943 (diff) | |
download | netsurf-9c0eda1d2cb2b5cde20abfab17125ed248a91062.tar.gz netsurf-9c0eda1d2cb2b5cde20abfab17125ed248a91062.tar.bz2 |
Fix float wrapping when available space equals space that would be used by float.
svn path=/trunk/netsurf/; revision=3898
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c index 7be5e7ed6..fb21c10f3 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1877,7 +1877,7 @@ void place_float_below(struct box *c, int width, int cx, int y, } else if (left != 0 && right == 0) { yy = left->y + left->height; } - } while (!((left == 0 && right == 0) || (c->width < x1 - x0))); + } while (!((left == 0 && right == 0) || (c->width <= x1 - x0))); if (c->type == BOX_FLOAT_LEFT) { c->x = x0; |