From 51da79c869a3f5c2463273cba3ff17e86693bb43 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Mon, 28 Sep 2020 11:26:54 +0100 Subject: [PATCH] e_gadcon: resolve autoscroll issue. Autoscroll was working until the client changed dimensions. This removes a size hint change on the same callback for size hint changes on the same object. Ensure container box dimensions reflect the minimum size after a size hint change on the contained objexct. --- src/bin/e_gadcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_gadcon.c b/src/bin/e_gadcon.c index 0e98c8831..4908d1480 100644 --- a/src/bin/e_gadcon.c +++ b/src/bin/e_gadcon.c @@ -1041,12 +1041,11 @@ _e_gadcon_client_box_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_ } static void -_e_gadcon_client_box_hints_changed(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) +_e_gadcon_client_box_hints_changed(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { E_Gadcon_Client *gcc = data; if (gcc->autoscroll) _e_gadcon_client_scroll_state_update(gcc); - evas_object_size_hint_min_set(obj, 0, 0); } static void @@ -2216,6 +2215,7 @@ _e_gadcon_moveresize_handle(E_Gadcon_Client *gcc) } evas_object_size_hint_min_set(gcc->o_base, w, h); evas_object_size_hint_max_set(gcc->o_base, mw, mh); + evas_object_size_hint_min_set(gcc->o_box, 0, 0); _e_gadcon_client_scroll_state_update(gcc); }