popup: fix resize issue in case of custom part text set
authorAmitesh Singh <amitesh.sh@samsung.com>
Tue, 4 Aug 2015 15:51:32 +0000 (21:21 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Tue, 4 Aug 2015 15:52:39 +0000 (21:22 +0530)
@fix

src/lib/elc_popup.c

index 5dbd1ba..90488d1 100644 (file)
@@ -862,9 +862,6 @@ _title_text_set(Evas_Object *obj,
    if (title_visibility_old != title_visibility_current)
      _visuals_set(obj);
 
-   _scroller_size_calc(obj);
-   elm_layout_sizing_eval(obj);
-
    return EINA_TRUE;
 }
 
@@ -926,9 +923,6 @@ _content_text_set(Evas_Object *obj,
      }
 
 end:
-   _scroller_size_calc(obj);
-   elm_layout_sizing_eval(obj);
-
    return EINA_TRUE;
 }
 
@@ -944,6 +938,9 @@ _elm_popup_elm_layout_text_set(Eo *obj, Elm_Popup_Data *_pd, const char *part, c
    else
      int_ret = elm_layout_text_set(_pd->main_layout, part, label);
 
+   _scroller_size_calc(obj);
+   elm_layout_sizing_eval(obj);
+
    return int_ret;
 }