discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=c56b14538b52cd22b32a7f2501aa7352695b845b

commit c56b14538b52cd22b32a7f2501aa7352695b845b
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Oct 19 11:38:04 2016 -0400

    avoid extra recalc when resizing a bryce on its oriented axis
---
 src/bin/e_bryce.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 8d62216..995f370 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -465,7 +465,8 @@ _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))
+   if (((b->orient == E_GADGET_SITE_ORIENT_VERTICAL) && (w != b->last_w)) ||
+       ((b->orient == E_GADGET_SITE_ORIENT_HORIZONTAL) && (h != b->last_h)))
      {
         evas_object_smart_need_recalculate_set(b->site, 1);
         evas_object_size_hint_min_set(b->site, -1, -1);

-- 


Reply via email to