[searchbar] fixing cancel_button_set
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 13 Oct 2010 13:45:26 +0000 (22:45 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 13 Oct 2010 13:45:26 +0000 (22:45 +0900)
src/lib/elm_searchbar.c

index bbdb94a..3c22a58 100644 (file)
@@ -278,13 +278,12 @@ EAPI void elm_searchbar_cancel_button_set(Evas_Object *obj, Eina_Bool visible)
 
    if (!visible)
    {
-          if (wd->cancel_btn_show_mode && wd->cancel_btn_ani_flag)
+          if (wd->cancel_btn_ani_flag)
                   edje_object_signal_emit(wd->base, "CANCELOUT", "PROG");
           else
                   edje_object_signal_emit(wd->base, "CANCELHIDE", "PROG");
-
-          _sizing_eval(obj);
    }
+   _sizing_eval(obj);
 }
 
 /**
@@ -331,7 +330,6 @@ EAPI void elm_searchbar_boundary_rect_set(Evas_Object *obj, Eina_Bool boundary)
    if (wd->boundary_mode)
    {
       _elm_theme_object_set(obj, wd->base, "searchbar", "base", "default_with_bd");
-
    }
    else
    {