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 12:15:31 -0400
commite662138af4431ce1b753749aac1571d1afef3d6d (patch)
tree34791c6bd0a995e70a67f4389be4cb6021ebd533
parent4d31e7fbbada46f71ac35158665f072488e10411 (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 {