r5446 tlsa - /trunk/netsurf/render/layout.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Sep 27 21:43:46 BST 2008


Author: tlsa
Date: Sat Sep 27 15:43:45 2008
New Revision: 5446

URL: http://source.netsurf-browser.org?rev=5446&view=rev
Log:
Also remember to apply min/max-width on floats without auto width.

Modified:
    trunk/netsurf/render/layout.c

Modified: trunk/netsurf/render/layout.c
URL: http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=5446&r1=5445&r2=5446&view=diff
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Sat Sep 27 15:43:45 2008
@@ -947,6 +947,8 @@
 		if (min_width >  0 && width < min_width) width = min_width;
 
 	} else {
+		if (max_width >= 0 && width > max_width) width = max_width;
+		if (min_width >  0 && width < min_width) width = min_width;
 		width -= scrollbar_width;
 	}
 




More information about the netsurf-commits mailing list