summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-25 20:54:49 +0200
committerCedric BAIL <cedric.bail@free.fr>2019-07-29 11:17:44 -0700
commit2057957d219996e5363d34475ceb39c2145d4005 (patch)
tree81e52f798bb5781d6b4866bdaba75ae8a57622f8 /src/lib
parent764f35b7a3e795e344d2414e252e280c3c34756d (diff)
efl_ui_pan: emit position changed when content is resized
even if the position is not really changed here, the min / max relation has changed. If we do not emit this event here, every user (that calculates a relative position) would have to monitor the pan position and the size of the content. This simplifies the given usecase, and fixes the scroller position when new items are added to the collection. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9411
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_pan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_pan.c b/src/lib/elementary/efl_ui_pan.c
index 534b433661..3412cba005 100644
--- a/src/lib/elementary/efl_ui_pan.c
+++ b/src/lib/elementary/efl_ui_pan.c
@@ -147,6 +147,7 @@ _efl_ui_pan_content_resize_cb(void *data,
147 evas_object_smart_changed(pobj); 147 evas_object_smart_changed(pobj);
148 } 148 }
149 efl_event_callback_call(pobj, EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED, NULL); 149 efl_event_callback_call(pobj, EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED, NULL);
150 efl_event_callback_call(pobj, EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED, NULL);
150} 151}
151 152
152EOLIAN static Eina_Bool 153EOLIAN static Eina_Bool