From 324cc53e87da771efb3778f0c48d235ff0d15e6c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 27 Sep 2008 20:43:45 +0000 Subject: Also remember to apply min/max-width on floats without auto width. svn path=/trunk/netsurf/; revision=5446 --- render/layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render/layout.c b/render/layout.c index e12562b73..5109b8c6a 100644 --- a/render/layout.c +++ b/render/layout.c @@ -947,6 +947,8 @@ void layout_float_find_dimensions(int available_width, 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; } -- cgit v1.2.3