discomfitor pushed a commit to branch master.

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

commit a9bab812ec3dd1f070a6ae419d7f4443a8cbac08
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Oct 13 11:20:21 2016 -0400

    enforce bryce resizing when orientation changes
    
    screens are not square, so this would never have worked
---
 src/bin/e_bryce.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index d352d9e..c6e4930 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -945,20 +945,12 @@ e_bryce_add(Evas_Object *parent, const char *name, 
E_Gadget_Site_Orient orient,
 E_API void
 e_bryce_orient(Evas_Object *bryce, E_Gadget_Site_Orient orient, 
E_Gadget_Site_Anchor an)
 {
-   int w, h;
-   E_Gadget_Site_Orient prev;
-
    BRYCE_GET(bryce);
    if ((b->orient == orient) && (b->anchor == an)) return;
-   prev = b->orient;
    b->orient = orient;
    b->anchor = an;
-   evas_object_geometry_get(bryce, NULL, NULL, &w, &h);
    _bryce_orient(b);
-   if (prev == orient)
-     _bryce_autosize(b);
-   else
-     evas_object_resize(bryce, h, w);
+   _bryce_autosize(b);
 }
 
 E_API Evas_Object *

-- 


Reply via email to