summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-08-19 12:06:20 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-08-19 18:51:22 -0400
commit8140f8092ceb23c0be3c373fae634b660cc5f526 (patch)
tree976d20acda29b0b2577f49963809335eb0b4c0c8
parentbf35817287f87c14dbd4fd08e1415876ee0f2c8d (diff)
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
-rw-r--r--src/bin/e_bryce.c7
1 files changed, 7 insertions, 0 deletions
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
19 Eina_Stringshare *style; 19 Eina_Stringshare *style;
20 int size; 20 int size;
21 int x, y; 21 int x, y;
22 int last_w, last_h;
22 int autohide_size; 23 int autohide_size;
23 E_Layer layer; 24 E_Layer layer;
24 unsigned int zone; 25 unsigned int zone;
@@ -437,6 +438,12 @@ _bryce_moveresize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *event
437 size = h; 438 size = h;
438 else 439 else
439 size = w; 440 size = w;
441 if ((w != b->last_w) || (h != b->last_h))
442 {
443 evas_object_smart_need_recalculate_set(b->site, 1);
444 evas_object_size_hint_min_set(b->site, -1, -1);
445 }
446 b->last_w = w, b->last_h = h;
440 447
441 if (size && (b->size != size)) 448 if (size && (b->size != size))
442 { 449 {