Signed-off-by: vipul <vipul.kumar@samsung.com>
Change-Id: I9d88a253ff4f1a9d7c6d90f18a92f528912fb03a
pElement->SetHintDisabled(true);
}
+ FloatRectangle itemBounds = pItem->GetBounds();
+ FloatRectangle clientBounds = __tabBar.GetBoundsF();
+
+ if (itemBounds.x < 0.0f)
+ {
+ SetTopDrawnItemIndex(index);
+ }
+ else if ((clientBounds.width - __sideMargin * 2.0f - __arrowMargin * 2.0f) < (itemBounds.x + itemBounds.width))
+ {
+ float movableDistance = (itemBounds.x + itemBounds.width) - (clientBounds.width - __sideMargin * 2.0f - __arrowMargin * 2.0f);
+ AdjustItemPositionX(-movableDistance);
+ }
+
__pTabBarModel->SetSelectedItemIndex(index);
return E_SUCCESS;