Elm popup: use the correct parent for calculations.

It just so happens that these parents are the same at the moment.
They don't have to be. We should use the correct, popup specific parent for
that.
This commit is contained in:
Tom Hacohen 2016-04-11 18:11:23 +01:00
parent aff4171e73
commit 1d7caffed5
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
edje_object_message_signal_process(elm_layout_edje_get(sd->content_area));
elm_popup_align_get(obj, &horizontal, &vertical);
evas_object_geometry_get(elm_widget_parent_get(obj), NULL, NULL, &w, &h);
evas_object_geometry_get(sd->parent, NULL, NULL, &w, &h);
if (horizontal == ELM_NOTIFY_ALIGN_FILL)
minw = w;