Author: tlsa
Date: Tue Jan 20 15:36:54 2009
New Revision: 6156
URL: http://source.netsurf-browser.org?rev=6156&view=rev
Log:
Fix positioning of floats that come after floats with negative margins.
Modified:
trunk/netsurf/render/layout.c
Modified: trunk/netsurf/render/layout.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=6156&r1=6155&r2=6156&view=diff
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Tue Jan 20 15:36:54 2009
@@ -1836,12 +1836,16 @@
* Float affects current line */
if (b->type == BOX_FLOAT_LEFT) {
b->x = cx + x0;
- x0 += b->width;
- left = b;
+ if (b->width > 0) {
+ x0 += b->width;
+ left = b;
+ }
} else {
b->x = cx + x1 - b->width;
- x1 -= b->width;
- right = b;
+ if (b->width > 0) {
+ x1 -= b->width;
+ right = b;
+ }
}
b->y = cy;
} else {
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org