cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2057957d219996e5363d34475ceb39c2145d4005

commit 2057957d219996e5363d34475ceb39c2145d4005
Author: Marcel Hollerbach <m...@marcel-hollerbach.de>
Date:   Thu Jul 25 20:54:49 2019 +0200

    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.b...@free.fr>
    Differential Revision: https://phab.enlightenment.org/D9411
---
 src/lib/elementary/efl_ui_pan.c | 1 +
 1 file changed, 1 insertion(+)

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,
         evas_object_smart_changed(pobj);
      }
    efl_event_callback_call(pobj, EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED, NULL);
+   efl_event_callback_call(pobj, EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED, NULL);
 }
 
 EOLIAN static Eina_Bool

-- 


Reply via email to