mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-14 09:16:34 +08:00
Reverted D2476924
Reviewed By: @mmmulani Differential Revision: D2479710
This commit is contained in:
committed by
facebook-github-bot-7
parent
3bbfab545a
commit
1ad1f45fe6
@@ -1004,7 +1004,7 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth, css_direction
|
||||
if (alignItem == CSS_ALIGN_STRETCH) {
|
||||
// You can only stretch if the dimension has not already been set
|
||||
// previously.
|
||||
if (!isDimDefined(child, crossAxis)) {
|
||||
if (isUndefined(child->layout.dimensions[dim[crossAxis]])) {
|
||||
child->layout.dimensions[dim[crossAxis]] = fmaxf(
|
||||
boundAxis(child, crossAxis, containerCrossAxis -
|
||||
paddingAndBorderAxisCross - getMarginAxis(child, crossAxis)),
|
||||
|
||||
Reference in New Issue
Block a user