-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for space-between and space-around on align-content
Summary: Adds the two missing alignments ```space-between``` and ```space-around``` for ```align-content``` . Those values are a noop on ```align-items``` in order to prevent a breaking changes for an additional enum. Fix #229 Closes #364 Reviewed By: gkassabli Differential Revision: D4528561 Pulled By: emilsjolander fbshipit-source-id: ea6291b6dd22cef05d9eec03893250d50371236e
- Loading branch information
1 parent
247aa26
commit 6a7ad21
Showing
16 changed files
with
1,143 additions
and
273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,5 +17,7 @@ public enum YogaAlign | |
FlexEnd, | ||
Stretch, | ||
Baseline, | ||
SpaceBetween, | ||
SpaceAround, | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,8 @@ | |
'FlexEnd', | ||
'Stretch', | ||
'Baseline', | ||
'SpaceBetween', | ||
'SpaceAround', | ||
], | ||
'PositionType': [ | ||
'Relative', | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,47 @@ | ||
<div id="align_content_flex_start" style="width: 100px; height: 100px; flex-wrap: wrap; flex-direction: column; align-content: flex-start;"> | ||
<div id="align_content_flex_start" style="width: 130px; height: 100px; flex-wrap: wrap; flex-direction: row; align-content: flex-start;"> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
</div> | ||
|
||
<div id="align_content_flex_end" style="width: 100px; height: 100px; flex-wrap: wrap; flex-direction: column; align-content: flex-end;"> | ||
<div id="align_content_flex_end" style="width: 130px; height: 100px; flex-wrap: wrap; flex-direction: row; align-content: flex-end;"> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
</div> | ||
|
||
<div id="align_content_center" style="width: 100px; height: 100px; flex-wrap: wrap; flex-direction: column; align-content: center;"> | ||
<div id="align_content_center" style="width: 130px; height: 100px; flex-wrap: wrap; flex-direction: row; align-content: center;"> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
</div> | ||
|
||
<div id="align_content_stretch" style="width: 100px; height: 100px; flex-wrap: wrap; flex-direction: column; align-content: stretch;"> | ||
<div id="align_content_stretch" style="width: 150px; height: 100px; flex-wrap: wrap; flex-direction: column; align-content: stretch;"> | ||
<div style="width: 50px;"></div> | ||
<div style="width: 50px;"></div> | ||
<div style="width: 50px;"></div> | ||
<div style="width: 50px;"></div> | ||
<div style="width: 50px;"></div> | ||
</div> | ||
|
||
<div id="align_content_spacebetween" style="width: 130px; height: 100px; flex-wrap: wrap; flex-direction: row; align-content: space-between;"> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
</div> | ||
|
||
<div id="align_content_spacearound" style="width: 140px; height: 120px; flex-wrap: wrap; flex-direction: row; align-content: space-around;"> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
<div style="width: 50px; height: 10px;"></div> | ||
</div> |
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
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
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
Oops, something went wrong.