cedric pushed a commit to branch master.

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

commit e7319b84e465f26f776004e93a9aab2955386882
Author: Jeeyong Um <con...@gmail.com>
Date:   Thu Apr 6 14:28:43 2017 -0700

    elm.hoversel: adjust alignment correctly in mirror mode
    
    Test Plan: elementary_test "hoversel"
    
    Reviewers: cedric, jpeg
    
    Reviewed By: cedric
    
    Differential Revision: https://phab.enlightenment.org/D4751
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elementary/elc_hoversel.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/elc_hoversel.c 
b/src/lib/elementary/elc_hoversel.c
index 0ecf69c..002bf33 100644
--- a/src/lib/elementary/elc_hoversel.c
+++ b/src/lib/elementary/elc_hoversel.c
@@ -320,13 +320,21 @@ _resizing_eval(Evas_Object *obj, Elm_Hoversel_Data *sd)
           {
              if ((obj_x + obj_w - x) > ((x + w) - obj_x))
                {
-                  elm_layout_signal_emit(sd->hover, "elm,state,align,right", 
"elm");
+                  if (elm_obj_widget_mirrored_get(obj))
+                    elm_obj_layout_signal_emit(sd->hover, 
"elm,state,align,right", "elm");
+                  else
+                    elm_obj_layout_signal_emit(sd->hover, 
"elm,state,align,default", "elm");
+
                   if ((obj_x + obj_w - ww) < x)
                     ww = obj_x + obj_w - x;
                }
              else
                {
-                  elm_layout_signal_emit(sd->hover, "elm,state,align,default", 
"elm");
+                  if (elm_obj_widget_mirrored_get(obj))
+                    elm_obj_layout_signal_emit(sd->hover, 
"elm,state,align,default", "elm");
+                  else
+                    elm_obj_layout_signal_emit(sd->hover, 
"elm,state,align,right", "elm");
+
                   ww = (x + w) - xx;
                }
           }

-- 


Reply via email to