discomfitor pushed a commit to branch master.

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

commit e662138af4431ce1b753749aac1571d1afef3d6d
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Aug 19 12:06:20 2016 -0400

    track current bryce geom, force recalc on gadget site upon change
    
    elm scroller is very resistant to recalc, so it's necessary to trigger it
    manually by resizing the scroller's contents
    
    fix T4339
---
 src/bin/e_bryce.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 213c465..090fd1c 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -19,6 +19,7 @@ typedef struct Bryce
    Eina_Stringshare *style;
    int size;
    int x, y;
+   int last_w, last_h;
    int autohide_size;
    E_Layer layer;
    unsigned int zone;
@@ -437,6 +438,12 @@ _bryce_moveresize(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj, void *event
      size = h;
    else
      size = w;
+   if ((w != b->last_w) || (h != b->last_h))
+     {
+        evas_object_smart_need_recalculate_set(b->site, 1);
+        evas_object_size_hint_min_set(b->site, -1, -1);
+     }
+   b->last_w = w, b->last_h = h;
 
    if (size && (b->size != size))
      {

-- 


Reply via email to