}
float sideMargin = 0.0f;
+ float arrowMargin = 0.0f;
GET_SHAPE_CONFIG(TABBAR::SIDE_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, sideMargin);
+ GET_SHAPE_CONFIG(TABBAR::ARROW_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, arrowMargin);
_TabBarItem* pFirstItem = __pTabBarModel->GetItemAt(0);
_TabBarItem* pLastItem = __pTabBarModel->GetItemAt(itemCount - 1);
{
AdjustItemPositionX(-firstItemBounds.x);
}
+ else if (!_FloatCompare(firstItemBounds.x, 0.0f) && lastItemBounds.x + lastItemBounds.width < clientBounds.width - sideMargin * 2.0f)
+ {
+ AdjustItemPositionX(clientBounds.width - (sideMargin + arrowMargin) * 2.0f - (lastItemBounds.x + lastItemBounds.width));
+ }
}
void