hermet pushed a commit to branch elementary-1.15.

http://git.enlightenment.org/core/elementary.git/commit/?id=88bcf35b0340f8d623d669be42bb0abbbfa0b6dc

commit 88bcf35b0340f8d623d669be42bb0abbbfa0b6dc
Author: Jee-Yong Um <jc9...@samsung.com>
Date:   Fri Aug 28 15:56:34 2015 +0900

    elm_hover: Set min size hint for size and offset spacer before moving or 
resizing hover
    
    Summary:
    Size or offset spacer make hover be able to move its swallows to right 
positions.
    In elm_layout_sizing_eval() for hover, moving and resizing spacers are done
    after moving and resizing hover.
    It causes in hover's move or resize callback, geometry can not be got 
correctly.
    
    Reviewers: SanghyeonLee, Hermet
    
    Reviewed By: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D2999
---
 src/lib/elm_hover.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c
index c55905e..9306c78 100644
--- a/src/lib/elm_hover.c
+++ b/src/lib/elm_hover.c
@@ -327,10 +327,10 @@ _elm_hover_elm_layout_sizing_eval(Eo *obj, Elm_Hover_Data 
*sd)
    else ofs_x = x2 - x;
 
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
-   evas_object_move(wd->resize_obj, x, y);
-   evas_object_resize(wd->resize_obj, w, h);
    evas_object_size_hint_min_set(sd->offset, ofs_x, y2 - y);
    evas_object_size_hint_min_set(sd->size, w2, h2);
+   evas_object_move(wd->resize_obj, x, y);
+   evas_object_resize(wd->resize_obj, w, h);
 }
 
 static void

-- 


Reply via email to