Also remember to apply min/max-width on floats without auto width.

svn path=/trunk/netsurf/; revision=5446
This commit is contained in:
Michael Drake 2008-09-27 20:43:45 +00:00
parent 1a00aa03a5
commit 324cc53e87

View File

@ -947,6 +947,8 @@ void layout_float_find_dimensions(int available_width,
if (min_width > 0 && width < min_width) width = min_width; if (min_width > 0 && width < min_width) width = min_width;
} else { } else {
if (max_width >= 0 && width > max_width) width = max_width;
if (min_width > 0 && width < min_width) width = min_width;
width -= scrollbar_width; width -= scrollbar_width;
} }