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