forked from enlightenment/enlightenment
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:
parent
bf35817287
commit
8140f8092c
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue