- // If control not a LayoutItem layout then must be the old Relayout algorithm hence account
- // for margins and padding.
- // Padding is incorrect but may have to keep this functionality for compatibility.
- if ( childControl && ! Toolkit::DevelControl::GetLayout( childControl ) )
- {
- Extents padding = mImpl->mPadding;
-
- Dali::CustomActor ownerActor(GetOwner());
- Dali::LayoutDirection::Type layoutDirection = static_cast<Dali::LayoutDirection::Type>( ownerActor.GetProperty( Dali::Actor::Property::LAYOUT_DIRECTION ).Get<int>() );
+ Dali::CustomActor ownerActor(GetOwner());
+ Dali::LayoutDirection::Type layoutDirection = static_cast<Dali::LayoutDirection::Type>(ownerActor.GetProperty(Dali::Actor::Property::LAYOUT_DIRECTION).Get<int>());