auto width = right - left;
// Space available for child
- auto childSpace = width - LayoutLength( padding.start ) - LayoutLength( padding.end );
+ auto childSpace = width - padding.start - padding.end;
auto count = GetChildCount();
for( unsigned int childIndex = 0; childIndex < count; childIndex++)
auto childMargin = childLayout->GetMargin();
childTop += childMargin.top;
- childLeft = ( childSpace - childWidth ) / 2 + LayoutLength( childMargin.start ) - LayoutLength( childMargin.end );
+ childLeft = ( childSpace - childWidth ) / 2 + childMargin.start - childMargin.end;
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childTop += childHeight + LayoutLength( childMargin.bottom ) + mCellPadding.height;
+ childTop += childHeight + childMargin.bottom + mCellPadding.height;
}
}
}