summaryrefslogtreecommitdiff
path: root/src/select/properties/min_width.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-10-21 15:04:13 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-10-21 15:04:13 +0100
commit07528c150449bbcd3eeeda450af7025164a01884 (patch)
tree7f35d09a314de547db6661fbf6d7e717f72c33cd /src/select/properties/min_width.c
parente7d6f245b0d256810d774a5a6cdbf1010e9b5cf0 (diff)
parent6d2bf7797ac10b36a270339ee381c11c3a52dbc9 (diff)
downloadlibcss-07528c150449bbcd3eeeda450af7025164a01884.tar.gz
libcss-07528c150449bbcd3eeeda450af7025164a01884.tar.bz2
Merge branch 'lcneves/flexbox-tidy'
Diffstat (limited to 'src/select/properties/min_width.c')
-rw-r--r--src/select/properties/min_width.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select/properties/min_width.c b/src/select/properties/min_width.c
index 5365588..8460e01 100644
--- a/src/select/properties/min_width.c
+++ b/src/select/properties/min_width.c
@@ -17,7 +17,7 @@
css_error css__cascade_min_width(uint32_t opv, css_style *style,
css_select_state *state)
{
- return css__cascade_length(opv, style, state, set_min_width);
+ return css__cascade_length_auto(opv, style, state, set_min_width);
}
css_error css__set_min_width_from_hint(const css_hint *hint,
@@ -29,7 +29,8 @@ css_error css__set_min_width_from_hint(const css_hint *hint,
css_error css__initial_min_width(css_select_state *state)
{
- return set_min_width(state->computed, CSS_MIN_WIDTH_SET, 0, CSS_UNIT_PX);
+ return set_min_width(state->computed, CSS_MIN_WIDTH_AUTO,
+ 0, CSS_UNIT_PX);
}
css_error css__compose_min_width(const css_computed_style *parent,