distance = movableDistance;
}
- r = AdjustItemPositionX(-distance);
+ r = AdjustItemPositionX(-distance + __arrowMargin);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
return E_SUCCESS;
else
{
r = SetTopDrawnItemIndex(firstDrawnItemIndex + 1);
-
- pItem = GetItemAt(itemIndex);
- SysTryReturn(NID_UI_CTRL, pItem != null, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Item loading fail.");
-
- itemBounds = pItem->GetBounds();
- AdjustItemPositionX((clientBounds.width - (__sideMargin * 2.0f)) - (itemBounds.x + itemBounds.width));
}
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
if (!_FloatCompare(firstItemBounds.x, 0.0f) && lastItemBounds.x + lastItemBounds.width - firstItemBounds.x < clientBounds.width - __sideMargin * 2.0f)
{
- AdjustItemPositionX(-firstItemBounds.x);
+ AdjustItemPositionX(-firstItemBounds.x + __arrowMargin);
}
else if (!_FloatCompare(firstItemBounds.x, 0.0f) && lastItemBounds.x + lastItemBounds.width < clientBounds.width - __sideMargin * 2.0f)
{
DECLARE_SHAPE_CONFIG(ITEM_MAX_WIDTH, 7);
DECLARE_SHAPE_CONFIG(ITEM_HEIGHT, 8);
DECLARE_SHAPE_CONFIG(HEIGHT, 9);
-// DECLARE_SHAPE_CONFIG(ITEM_COUNT_MAX, 10);
- DECLARE_SHAPE_CONFIG(ARROW_MARGIN, 11);
+ DECLARE_SHAPE_CONFIG(ARROW_MARGIN, 10);
DECLARE_FIXED_VALUE_CONFIG(ITEM_COUNT_MAX, 1);
DECLARE_END_UI_CONFIG(TABBAR);
ADD_SHAPE_CONFIG(ITEM_MAX_WIDTH, 444);
ADD_SHAPE_CONFIG(ITEM_HEIGHT, 72);
ADD_SHAPE_CONFIG(HEIGHT, 90);
-// ADD_SHAPE_CONFIG(ITEM_COUNT_MAX, 100);
ADD_SHAPE_CONFIG(ARROW_MARGIN, 8);
ADD_FIXED_VALUE_CONFIG(ITEM_COUNT_MAX, 100);