popup: fix popup sizing when scroll enabled.

Summary:
Force immediate calculate on main_layout after sizing hints set.

@fix T6886

Test Plan: Elementary_test: popup -> select scrollable -> use popup examples.

Reviewers: #committers, zmike, stephenmhouston, bu5hm4n, devilhorns

Reviewed By: #committers, zmike, stephenmhouston

Subscribers: cedric

Tags: #efl

Maniphest Tasks: T6886

Differential Revision: https://phab.enlightenment.org/D6509
This commit is contained in:
Alastair Poole 2018-07-06 10:43:39 -05:00 committed by Stephen 'Okra' Houston
parent 65b3eb27c2
commit d0840ac793
1 changed files with 8 additions and 0 deletions

View File

@ -503,6 +503,14 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
else
evas_object_size_hint_min_set(sd->spacer, minw, minh);
if (sd->main_layout)
{
Evas *ev = evas_object_evas_get(sd->main_layout);
if (evas_smart_objects_calculating_get(ev))
evas_object_smart_calculate(sd->main_layout);
else
evas_object_smart_need_recalculate_set(sd->main_layout, EINA_TRUE);
}
return;
}