From 89af2a41f4eb1ddc36ca49498fb8fe9177065d84 Mon Sep 17 00:00:00 2001 From: clone Date: Mon, 25 Mar 2013 15:24:37 +0900 Subject: [PATCH] Fixed for N_SE-29828; blank space after last item. Change-Id: If0b7709d124465c232c4d7499ba4816121f6518d Signed-off-by: clone --- src/ui/controls/FUiCtrl_TabBarPresenter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.7.4