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
This commit is contained in:
Mike Blumenkrantz 2016-08-19 12:06:20 -04:00
parent 4d31e7fbba
commit e662138af4
1 changed files with 7 additions and 0 deletions

View File

@ -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))
{