Fix for N_SE-32342
authorSaravana Balaji <saravana.bs@samsung.com>
Sat, 6 Apr 2013 12:07:37 +0000 (17:37 +0530)
committerAyush <ayush.sriv@samsung.com>
Sun, 7 Apr 2013 09:01:40 +0000 (14:31 +0530)
Change-Id: Iad2fc80a4e4f1c678bd329b6a566d792104eb1c7
Signed-off-by: Saravana Balaji <saravana.bs@samsung.com>
Signed-off-by: Ayush <ayush.sriv@samsung.com>
src/ui/controls/FUiCtrl_SearchBar.cpp
src/ui/controls/FUiCtrl_SearchBarPresenter.cpp

index edbbf79..574d18d 100644 (file)
@@ -1546,6 +1546,7 @@ void
 _SearchBar::OnChangeLayout(_ControlOrientation orientation)
 {
        SetContentsArea();
+       return;
 }
 
 void
index c89a108..60b62db 100755 (executable)
@@ -374,7 +374,7 @@ _SearchBarPresenter::DrawIcon(void)
        GET_SHAPE_CONFIG(SEARCHBAR::ICON_HEIGHT, orientation, iconHeight);
 
        iconBounds.x = iconMarginH;
-       iconBounds.y = (__pEdit->GetBoundsF().height - iconWidth) / 2.0f;
+       iconBounds.y = (__pEdit->GetBoundsF().height - iconHeight) / 2.0f;
        iconBounds.width = iconWidth;
        iconBounds.height = iconHeight;
 
@@ -512,6 +512,7 @@ _SearchBarPresenter::InitializeInputModeLayout(void)
        float buttonLeftMargin = 0.0f;
        float buttonWidth = 0.0f;
        float searchFieldMinWidth = 0.0f;
+
        _ControlOrientation orientation = _ControlManager::GetInstance()->GetOrientation();
 
        GET_SHAPE_CONFIG(SEARCHBAR::HORIZONTAL_MARGIN, orientation, horizontalMargin);
@@ -519,6 +520,7 @@ _SearchBarPresenter::InitializeInputModeLayout(void)
        GET_SHAPE_CONFIG(SEARCHBAR::BUTTON_RIGHT_MARGIN, orientation, buttonRightMargin);
        GET_SHAPE_CONFIG(SEARCHBAR::SEARCH_FIELD_MIN_WIDTH, orientation, searchFieldMinWidth);
        GET_SHAPE_CONFIG(SEARCHBAR::BUTTON_WIDTH, orientation, buttonWidth);
+
        float buttonResizableSearchBarWidth = (horizontalMargin + searchFieldMinWidth +
                                             buttonWidth + buttonLeftMargin + buttonRightMargin);
 
@@ -619,6 +621,7 @@ _SearchBarPresenter::OnBoundsChanged(void)
        }
 
        __pSearchBar->SetContentsArea();
+       __pSearchBar->Invalidate(true);
 
        return;
 }