fix children with left

This commit is contained in:
Christopher Chedeau
2014-12-11 15:58:45 +00:00
parent ba873aa3d7
commit ab64a5b624
2 changed files with 16 additions and 2 deletions

View File

@@ -267,8 +267,7 @@ var computeLayout = (function() {
if (getAlignItem(node, child) === CSS_ALIGN_STRETCH &&
getPositionType(child) === CSS_POSITION_RELATIVE &&
!isUndefined(node.layout[dim[crossAxis]]) &&
!isDimDefined(child, crossAxis) &&
!isPosDefined(child, leading[crossAxis])) {
!isDimDefined(child, crossAxis)) {
child.layout[dim[crossAxis]] = fmaxf(
node.layout[dim[crossAxis]] -
getPaddingAndBorderAxis(node, crossAxis) -