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
4d31e7fbba
commit
e662138af4
|
@ -19,6 +19,7 @@ typedef struct Bryce
|
||||||
Eina_Stringshare *style;
|
Eina_Stringshare *style;
|
||||||
int size;
|
int size;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
int last_w, last_h;
|
||||||
int autohide_size;
|
int autohide_size;
|
||||||
E_Layer layer;
|
E_Layer layer;
|
||||||
unsigned int zone;
|
unsigned int zone;
|
||||||
|
@ -437,6 +438,12 @@ _bryce_moveresize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event
|
||||||
size = h;
|
size = h;
|
||||||
else
|
else
|
||||||
size = w;
|
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))
|
if (size && (b->size != size))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue