-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Change aspect ratio behavior
Summary: == Before == - Aspect ratio would do its best to fit within it's parent constraints - Aspect ratio would prioritize `alignItems: stretch` over other sizing properties. == After == - Aspect ratio is allowed to make a node grow past its parent constraints. This matches many other aspects of flexbox where parent constraints are not treated as hard constraints but rather as suggestions. - Aspect ratio only takes `alignItems: stretch` into account if no other size definition is defined. This matches the interaction of other properties with `alignItems: stretch`. == Updating your code == **You probably don't need to do anything** but in case something does break in your product it should be as easy as adding `{width: '100%', height: '100%', flexShrink: 1}` to the style declaring the `aspectRatio`. Reviewed By: gkassabli Differential Revision: D5639187 fbshipit-source-id: 603e8fcc3373f0b7f2461da2dad1625ab59dcb19
- Loading branch information
1 parent
992777b
commit 67c160c
Showing
1 changed file
with
96 additions
and
86 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