- // Cannot use childs Position property as it can already have margin applied on it,
- // so we end up cumulatively applying them over and over again.
- Toolkit::Control childControl = Toolkit::Control::DownCast( child );
-
- // 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;