-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fxFlex): prevent setting min/max-size when grow/shrink is zero
handle various scenarios of grow/shrink being zero: * set `min-width`/`min-height` only if `grow != 0` * set `max-width`/`max-height` only if `shink != 0` * set both min and max if both `grow == 0` AND `shink == 0` * add tests for these scenarios * remove max-width from test "should set a min-width when the shrink == 0" fixes #153 Signed-off-by: Somo <somo@mombo.solutions>
- Loading branch information
Showing
2 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters