From 710a927441834128d7c3fbec0bf24e0c0075e26e Mon Sep 17 00:00:00 2001 From: Jee-Yong Um Date: Fri, 28 Aug 2015 15:56:34 +0900 Subject: [PATCH] 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 -- 2.7.4