diff options
author | James Bursa <james@netsurf-browser.org> | 2003-10-01 22:48:39 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-10-01 22:48:39 +0000 |
commit | 7ef999c573131e802270aecb4daf77a42130c011 (patch) | |
tree | fafee19529230614105286e1725ad2b38a021ce7 /render/layout.c | |
parent | 92d5404afad67e4d615f59a873449d25dc6b92aa (diff) | |
download | netsurf-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.c | 13 |
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 && |