summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-08-28 15:56:34 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-28 18:11:56 +0900
commit88bcf35b0340f8d623d669be42bb0abbbfa0b6dc (patch)
tree8134848036fccfbbc858e1b54bbcab110884a401
parentf42fe2dcf8301c5beba61f99358157845a17474b (diff)
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
-rw-r--r--src/lib/elm_hover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_hover.c b/src/lib/elm_hover.c
index c55905ef2..9306c7805 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)
327 else ofs_x = x2 - x; 327 else ofs_x = x2 - x;
328 328
329 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 329 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
330 evas_object_move(wd->resize_obj, x, y);
331 evas_object_resize(wd->resize_obj, w, h);
332 evas_object_size_hint_min_set(sd->offset, ofs_x, y2 - y); 330 evas_object_size_hint_min_set(sd->offset, ofs_x, y2 - y);
333 evas_object_size_hint_min_set(sd->size, w2, h2); 331 evas_object_size_hint_min_set(sd->size, w2, h2);
332 evas_object_move(wd->resize_obj, x, y);
333 evas_object_resize(wd->resize_obj, w, h);
334} 334}
335 335
336static void 336static void