From: clone Date: Mon, 25 Mar 2013 06:24:37 +0000 (+0900) Subject: Fixed for N_SE-29828; blank space after last item. X-Git-Tag: accepted/tizen_2.1/20130425.033138~726^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89af2a41f4eb1ddc36ca49498fb8fe9177065d84;p=platform%2Fframework%2Fnative%2Fuifw.git Fixed for N_SE-29828; blank space after last item. Change-Id: If0b7709d124465c232c4d7499ba4816121f6518d Signed-off-by: clone --- diff --git a/src/ui/controls/FUiCtrl_TabBarPresenter.cpp b/src/ui/controls/FUiCtrl_TabBarPresenter.cpp index 8281ba2..a1a1aca 100755 --- a/src/ui/controls/FUiCtrl_TabBarPresenter.cpp +++ b/src/ui/controls/FUiCtrl_TabBarPresenter.cpp @@ -619,7 +619,9 @@ _TabBarPresenter::InitItemPositionX(void) } 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); @@ -633,6 +635,10 @@ _TabBarPresenter::InitItemPositionX(void) { 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