summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-07-06 10:43:39 -0500
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2018-07-12 11:34:47 +0900
commit0d633587272ae2c03bb67260c0ec826cfe08a3fa (patch)
tree4531dae6f9d8e2c1358dd71f1fd78a53f670b732
parent30116eb80d2e2f939df8fc66928c5620c8116f9d (diff)
downloadefl-0d633587272ae2c03bb67260c0ec826cfe08a3fa.tar.gz
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
-rw-r--r--src/lib/elementary/elc_popup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c
index 504e45bba4..048e778108 100644
--- a/src/lib/elementary/elc_popup.c
+++ b/src/lib/elementary/elc_popup.c
@@ -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;
}