popup: fix content_area resize in case of custom theme
authorAmitesh Singh <amitesh.sh@samsung.com>
Sat, 15 Aug 2015 18:53:44 +0000 (00:23 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Sat, 15 Aug 2015 18:58:03 +0000 (00:28 +0530)
Send elm,scroll,enable/disable signals in theme_apply.
It is a fix of 0891ac5cfc2710d0c89034
Thanks to Dave for reporting this issue.

src/lib/elc_popup.c

index cbcab3c..12558f0 100644 (file)
@@ -377,10 +377,14 @@ _elm_popup_elm_widget_theme_apply(Eo *obj, Elm_Popup_Data *sd)
      elm_layout_signal_emit(sd->main_layout, "elm,state,title,icon,visible", "elm");
 
    _populate_theme_scroll(sd);
-   if (!sd->theme_scroll && sd->scroll)
+   if (sd->scroll && !sd->theme_scroll)
      sd->max_sc_w = 240 * elm_config_scale_get() * elm_object_scale_get(obj);
    else
      sd->max_sc_w = 0;
+   if (!sd->scroll && sd->theme_scroll)
+     elm_layout_signal_emit(sd->content_area, "elm,scroll,disable", "elm");
+   else if (sd->scroll && sd->theme_scroll)
+     elm_layout_signal_emit(sd->content_area, "elm,scroll,enable", "elm");
 
    _visuals_set(obj);
    _scroller_size_calc(obj);