X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Flayouting%2Fflex-layout-impl.cpp;h=648a7f653e1658d32dbbae0f786127d470f61df8;hp=8766c589a429007deb8c6ec3b98b923ce29e535c;hb=336f743269f056b02394659f50a60274a9f59660;hpb=cc0d3b133e4934bd57ab5a39a22d975dacb251bc;ds=sidebyside diff --git a/dali-toolkit/internal/layouting/flex-layout-impl.cpp b/dali-toolkit/internal/layouting/flex-layout-impl.cpp index 8766c58..648a7f6 100644 --- a/dali-toolkit/internal/layouting/flex-layout-impl.cpp +++ b/dali-toolkit/internal/layouting/flex-layout-impl.cpp @@ -227,12 +227,12 @@ void FlexLayout::OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeas YGNodeStyleSetMaxWidth( mRoot, width ); } - if (heightMeasureSpec.GetMode() == MeasureSpec::Mode::EXACTLY) + if ( heightMeasureSpec.GetMode() == MeasureSpec::Mode::EXACTLY ) { height = heightMeasureSpec.GetSize(); YGNodeStyleSetHeight( mRoot, height ); } - else if (widthMeasureSpec.GetMode() == MeasureSpec::Mode::AT_MOST) + else if ( heightMeasureSpec.GetMode() == MeasureSpec::Mode::AT_MOST ) { height = heightMeasureSpec.GetSize(); YGNodeStyleSetMaxHeight( mRoot, height ); @@ -306,7 +306,7 @@ YGSize FlexLayout::OnChildMeasure( YGNodeRef node, if( desiredHeight == Toolkit::ChildLayoutData::MATCH_PARENT ) { - if( innerWidth != YGUndefined) + if( innerHeight != YGUndefined) { desiredHeight = innerHeight; }