elm_hover: Set min size hint for size and offset spacer before moving or resizing...
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 28 Aug 2015 06:56:34 +0000 (15:56 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Fri, 28 Aug 2015 06:56:34 +0000 (15:56 +0900)
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

index c55905e..9306c78 100644 (file)
@@ -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