popup: add safe code for notify position 71/230271/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 9 Apr 2020 05:25:19 +0000 (14:25 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 9 Apr 2020 05:44:57 +0000 (14:44 +0900)
when calculating scroller size, notify position y value is used.
If parent position of notify is changed, the position of notify should be recalculated
for calculating correct scroller size.

Change-Id: I58a4f51ab39ab13844a0354cff761b8dc237ffc4

src/lib/elementary/elc_popup.c

index 5b9eb1f..1a85a37 100644 (file)
@@ -372,6 +372,7 @@ _elm_popup_efl_canvas_group_group_del(Eo *obj, Elm_Popup_Data *sd)
    evas_object_event_callback_del_full(sd->parent, EVAS_CALLBACK_RESIZE, _parent_geom_cb, obj);
    evas_object_event_callback_del_full(sd->parent, EVAS_CALLBACK_MOVE, _parent_geom_cb, obj);
    evas_object_event_callback_del_full(sd->notify, EVAS_CALLBACK_RESIZE, _notify_resize_cb, obj);
+   evas_object_event_callback_del_full(sd->notify, EVAS_CALLBACK_MOVE, _notify_resize_cb, obj);
 
    efl_event_callback_array_del(sd->notify, _notify_cb(), obj);
    evas_object_event_callback_del
@@ -2196,6 +2197,7 @@ _elm_popup_efl_canvas_group_group_add(Eo *obj, Elm_Popup_Data *priv)
    elm_object_mirrored_set(priv->notify, elm_object_mirrored_get(obj));
 
    evas_object_event_callback_add(priv->notify, EVAS_CALLBACK_RESIZE, _notify_resize_cb, obj);
+   evas_object_event_callback_add(priv->notify, EVAS_CALLBACK_MOVE, _notify_resize_cb, obj);
    efl_event_callback_array_add(priv->notify, composition_cb(), obj);
 
    priv->main_layout = elm_layout_add(obj);