rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=1acbc656704dcae52b9e34e337f4da5f47364c4e

commit 1acbc656704dcae52b9e34e337f4da5f47364c4e
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Mar 16 15:53:29 2016 +0200

    ewe_ruler: update the smart_resize
    
    Check the size difference more simply
    
    Change-Id: I648afbc100396ef5ffff77fe86d5780915281007
---
 src/lib/ewe_ruler.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lib/ewe_ruler.c b/src/lib/ewe_ruler.c
index 25a6229..8737a96 100644
--- a/src/lib/ewe_ruler.c
+++ b/src/lib/ewe_ruler.c
@@ -855,13 +855,12 @@ _ewe_ruler_evas_object_smart_resize(Eo *obj,
                                     Evas_Coord w,
                                     Evas_Coord h)
 {
-   int delta_width = w - sd->geometry.width;
-   int delta_height = h - sd->geometry.height;
-   if ((delta_height == 0) && (delta_width == 0))
-     return;
+   if ((w == sd->geometry.width) && (h == sd->geometry.height)) return;
+
    sd->size_changed = EINA_TRUE;
    sd->geometry.width = w;
    sd->geometry.height = h;
+
    evas_obj_smart_resize(eo_super(obj, MY_CLASS), w, h);
    evas_object_resize(sd->clip, w, h);
    evas_object_resize(sd->bg, w, h);

-- 


Reply via email to