Fixed for N_SE-29828; blank space after last item.
authorclone <ingyou.park@samsung.com>
Mon, 25 Mar 2013 06:24:37 +0000 (15:24 +0900)
committerclone <ingyou.park@samsung.com>
Mon, 25 Mar 2013 06:24:37 +0000 (15:24 +0900)
Change-Id: If0b7709d124465c232c4d7499ba4816121f6518d
Signed-off-by: clone <ingyou.park@samsung.com>
src/ui/controls/FUiCtrl_TabBarPresenter.cpp

index 8281ba2..a1a1aca 100755 (executable)
@@ -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