Fix for SB when CancelButton is not enabled during Construct
authorAyush <ayush.sriv@samsung.com>
Fri, 5 Apr 2013 11:27:48 +0000 (16:57 +0530)
committerAyush <ayush.sriv@samsung.com>
Fri, 5 Apr 2013 11:27:48 +0000 (16:57 +0530)
Change-Id: I57873cf8832a723a2cdb65e42d3be055ba706af1
Signed-off-by: Ayush <ayush.sriv@samsung.com>
src/ui/controls/FUiCtrl_SearchBarPresenter.cpp

index 6a46fd3..c89a108 100755 (executable)
@@ -606,7 +606,7 @@ _SearchBarPresenter::OnBoundsChanged(void)
        r = __pEdit->SetBounds(__searchFieldBounds);
        SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.",GetErrorMessage(r));
 
-       if (GetMode() == SEARCH_BAR_MODE_INPUT)
+       if (__pSearchBar->IsUsableCancelButton() && GetMode() == SEARCH_BAR_MODE_INPUT)
        {
                float buttonWidth = 0.0f;
                _ControlOrientation orientation = _ControlManager::GetInstance()->GetOrientation();