{
case Dali::Toolkit::LinearLayout::Alignment::TOP:
{
- childTop = LayoutLength( padding.top ) + LayoutLength( childMargin.top );
+ childTop = LayoutLength( padding.top ) + childMargin.top;
break;
}
case Dali::Toolkit::LinearLayout::Alignment::BOTTOM:
{
- childTop = height - LayoutLength( padding.bottom ) - childHeight - LayoutLength( childMargin.bottom );
+ childTop = height - padding.bottom - childHeight - childMargin.bottom;
break;
}
case Dali::Toolkit::LinearLayout::Alignment::CENTER_VERTICAL: // FALLTHROUGH
}
childLeft += childMargin.start;
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childLeft += childWidth + LayoutLength( childMargin.end ) + mCellPadding.width;
+ childLeft += childWidth + childMargin.end + mCellPadding.width;
}
}
}
if( isExactly && useExcessSpace )
{
LayoutLength totalLength = mTotalLength;
- mTotalLength = std::max( totalLength, totalLength + LayoutLength( childMargin.top ) + LayoutLength( childMargin.bottom ) );
+ mTotalLength = std::max( totalLength, totalLength + childMargin.top + childMargin.bottom );
}
else
{
case Dali::Toolkit::LinearLayout::Alignment::BEGIN:
default:
{
- childLeft = LayoutLength( padding.start ) + LayoutLength( childMargin.start );
+ childLeft = LayoutLength( padding.start ) + childMargin.start;
break;
}
case Dali::Toolkit::LinearLayout::Alignment::END:
{
- childLeft = width - LayoutLength( padding.end ) - childWidth - LayoutLength( childMargin.end );
+ childLeft = width - padding.end - childWidth - childMargin.end;
break;
}
case Dali::Toolkit::LinearLayout::Alignment::CENTER_HORIZONTAL:
}
}
childLayout->Layout( childLeft, childTop, childLeft + childWidth, childTop + childHeight );
- childTop += childHeight + LayoutLength( childMargin.bottom ) + mCellPadding.height;
+ childTop += childHeight + childMargin.bottom + mCellPadding.height;
}
}
}
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;
}
}
}