Removed obsolete MARGIN_SPECIFICATION child property 61/181561/2
authorDavid Steele <david.steele@samsung.com>
Thu, 14 Jun 2018 18:22:56 +0000 (19:22 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 15 Jun 2018 08:09:06 +0000 (08:09 +0000)
LayoutGroup no longer defines MARGIN_SPECIFICATION child property
Removed from header, and migrated Vbox to use LayoutItem::GetMargin instead.

Change-Id: Id9bb90cf5faffb6162d1b9d661f855a7b7164af6
Signed-off-by: David Steele <david.steele@samsung.com>
dali-toolkit/devel-api/layouting/layout-group.h
dali-toolkit/internal/layouting/vbox-layout-impl.cpp

index c6b777b..c61eea8 100644 (file)
@@ -59,7 +59,6 @@ public:
   {
     enum
     {
-      MARGIN_SPECIFICATION = LAYOUT_GROUP_CHILD_PROPERTY_START_INDEX,
     };
   };
 
index 79d2f54..22fba16 100644 (file)
@@ -133,7 +133,8 @@ void VboxLayout::OnMeasure( MeasureSpec widthMeasureSpec, MeasureSpec heightMeas
 
       MeasureChildWithMargins( childLayout, widthMeasureSpec, 0, heightMeasureSpec, 0 );
       auto childHeight = childLayout->GetMeasuredHeight();
-      auto childMargin = childOwner.GetProperty<Extents>( Toolkit::LayoutGroup::ChildProperty::MARGIN_SPECIFICATION );
+      auto childMargin = childLayout->GetMargin();
+
       auto length = childHeight + LayoutLength::IntType(childMargin.top + childMargin.bottom );
 
       auto cellPadding = i<GetChildCount()-1 ? mCellPadding.height : 0;
@@ -244,7 +245,7 @@ void VboxLayout::OnLayout( bool changed, LayoutLength left, LayoutLength top, La
       auto childHeight = childLayout->GetMeasuredHeight();
 
       auto childOwner = childLayout->GetOwner();
-      auto childMargin = childOwner.GetProperty<Extents>( Toolkit::LayoutGroup::ChildProperty::MARGIN_SPECIFICATION );
+      auto childMargin = childLayout->GetMargin();
 
       childTop += childMargin.top;
       childLeft = ( childSpace - childWidth ) / 2 + childMargin.start - childMargin.end;