summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-10-01 22:48:39 +0000
committerJames Bursa <james@netsurf-browser.org>2003-10-01 22:48:39 +0000
commit7ef999c573131e802270aecb4daf77a42130c011 (patch)
treefafee19529230614105286e1725ad2b38a021ce7 /render/layout.c
parent92d5404afad67e4d615f59a873449d25dc6b92aa (diff)
downloadnetsurf-7ef999c573131e802270aecb4daf77a42130c011.tar.gz
netsurf-7ef999c573131e802270aecb4daf77a42130c011.tar.bz2
[project @ 2003-10-01 22:48:39 by bursa]
Improvements to <select>. svn path=/import/netsurf/; revision=341
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index 4c9f2a832..2c3d04e05 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -874,6 +874,19 @@ void calculate_inline_container_widths(struct box *box)
break;
case BOX_INLINE_BLOCK:
+ if (child->style != 0 &&
+ child->style->width.width == CSS_WIDTH_LENGTH) {
+ width = len(&child->style->width.value.length,
+ child->style);
+ if (min < width) min = width;
+ max += width;
+ } else {
+ calculate_widths(child);
+ if (min < child->min_width) min = child->min_width;
+ max += child->max_width;
+ }
+ break;
+
case BOX_FLOAT_LEFT:
case BOX_FLOAT_RIGHT:
if (child->style != 0 &&