X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Flayouting%2Fvbox-layout-impl.cpp;h=22fba1678a07bf114476f02a25594d1b77ec2370;hb=c440dd0d4d403b2b31a426a472810e2f94c80f25;hp=56fb230af295bbc47836f9d9a0334b960e0df371;hpb=20b42a9bcaba6b874f2271f03a56da6f884c4053;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/layouting/vbox-layout-impl.cpp b/dali-toolkit/internal/layouting/vbox-layout-impl.cpp index 56fb230..22fba16 100644 --- a/dali-toolkit/internal/layouting/vbox-layout-impl.cpp +++ b/dali-toolkit/internal/layouting/vbox-layout-impl.cpp @@ -17,7 +17,6 @@ //CLASS HEADER #include -//EXTERNAL HEADERS //INTERNAL HEADERS #include #include @@ -27,10 +26,12 @@ #include #include - +namespace +{ #if defined(DEBUG_ENABLED) -static Debug::Filter* gLogFilter = Debug::Filter::New( Debug::Concise, false, "LOG_LAYOUT" ); +static Debug::Filter* gLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_LAYOUT" ); #endif +} namespace Dali { @@ -132,7 +133,8 @@ void VboxLayout::OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeas MeasureChildWithMargins( childLayout, widthMeasureSpec, 0, heightMeasureSpec, 0 ); auto childHeight = childLayout->GetMeasuredHeight(); - auto childMargin = childOwner.GetProperty( Toolkit::LayoutGroup::ChildProperty::MARGIN_SPECIFICATION ); + auto childMargin = childLayout->GetMargin(); + auto length = childHeight + LayoutLength::IntType(childMargin.top + childMargin.bottom ); auto cellPadding = iGetMeasuredHeight(); auto childOwner = childLayout->GetOwner(); - auto childMargin = childOwner.GetProperty( Toolkit::LayoutGroup::ChildProperty::MARGIN_SPECIFICATION ); + auto childMargin = childLayout->GetMargin(); childTop += childMargin.top; childLeft = ( childSpace - childWidth ) / 2 + childMargin.start - childMargin.end;