netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=51da79c869a3f5c2463273cba3ff17e86693bb43

commit 51da79c869a3f5c2463273cba3ff17e86693bb43
Author: Alastair Poole <nets...@gmail.com>
Date:   Mon Sep 28 11:26:54 2020 +0100

    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);
 }
 

-- 


Reply via email to