Skip to content

Commit

Permalink
Fix wrong default computed value for 'flex-shrink' property
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed May 9, 2022
1 parent c2321fd commit 011e991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/RmlUi/Core/ComputedValues.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ namespace Style {
FlexWrap flex_wrap() const { return GetLocalPropertyKeyword(PropertyId::FlexWrap, FlexWrap::Nowrap); }
JustifyContent justify_content() const { return GetLocalPropertyKeyword(PropertyId::JustifyContent, JustifyContent::FlexStart); }
float flex_grow() const { return GetLocalProperty(PropertyId::FlexGrow, 0.f); }
float flex_shrink() const { return GetLocalProperty(PropertyId::FlexShrink, 0.f); }
float flex_shrink() const { return GetLocalProperty(PropertyId::FlexShrink, 1.f); }
FlexBasis flex_basis() const { return LengthPercentageAuto(rare.flex_basis_type, rare.flex_basis); }
float border_top_left_radius() const { return (float)rare.border_top_left_radius; }
float border_top_right_radius() const { return (float)rare.border_top_right_radius; }
Expand Down

0 comments on commit 011e991

Please sign in to comment.