efl_ui_pan: emit the viewport change when the position changes
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 9 Jul 2019 15:37:05 +0000 (17:37 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 10 Jul 2019 04:21:44 +0000 (13:21 +0900)
otherwise the viewport changes are not propagated correctly. This is
needed in order to have the new item_container bug free.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9249

src/lib/elementary/efl_ui_pan.c

index f56cae3..534b433 100644 (file)
@@ -33,6 +33,7 @@ _efl_ui_pan_efl_gfx_entity_position_set(Eo *obj, Efl_Ui_Pan_Data *psd, Eina_Posi
    psd->y = pos.y;
 
    evas_object_smart_changed(obj);
+   efl_event_callback_call(obj, EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED, NULL);
 }
 
 EOLIAN static void