From e662138af4431ce1b753749aac1571d1afef3d6d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 19 Aug 2016 12:06:20 -0400 Subject: [PATCH] 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 213c46594..090fd1c33 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)) {