summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-09-27 20:43:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-09-27 20:43:45 +0000
commit324cc53e87da771efb3778f0c48d235ff0d15e6c (patch)
tree84883747b1be265fe6fa079b16a295c8955614d8 /render
parent1a00aa03a58ac3df981aaa5c59b81f09774ea0f3 (diff)
downloadnetsurf-324cc53e87da771efb3778f0c48d235ff0d15e6c.tar.gz
netsurf-324cc53e87da771efb3778f0c48d235ff0d15e6c.tar.bz2
Also remember to apply min/max-width on floats without auto width.
svn path=/trunk/netsurf/; revision=5446
Diffstat (limited to 'render')
-rw-r--r--render/layout.c2
1 files changed, 2 insertions, 0 deletions
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;
}