Flex shrink changes size with flex grow below 1 #1033

Open
opened 2020-10-12 07:05:44 -07:00 by jer-sen · 0 comments
jer-sen commented 2020-10-12 07:05:44 -07:00 (Migrated from github.com)

Report

Issues and Steps to Reproduce

Take a single child smaller than its parent. Add flex grow between 0 and 1 (0.5 for instance). Try to set flex shrink to 0 or 1.

Expected Behavior

Same result with 0 or 1: flex shrink should have no impact on the child size since there is still unused space in the parent.

Actual Behavior

Not the same result.

Link to Code

http://tinyurl.com/yxosawoz

# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # Issues and Steps to Reproduce Take a single child smaller than its parent. Add flex grow between 0 and 1 (0.5 for instance). Try to set flex shrink to 0 or 1. # Expected Behavior Same result with 0 or 1: flex shrink should have no impact on the child size since there is still unused space in the parent. # Actual Behavior Not the same result. # Link to Code http://tinyurl.com/yxosawoz
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#1033
No description provided.