summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-07-06 10:43:39 -0500
committerStephen 'Okra' Houston <smhouston88@gmail.com>2018-07-06 11:09:04 -0500
commitd0840ac793ad4883a6a976d17fcfc69033178fd8 (patch)
tree59eca37617b415b43ce67b8ca1025aa0ab9062f2
parent65b3eb27c24ad5f248eea4bbde0d2d090aed25de (diff)
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)
503 else 503 else
504 evas_object_size_hint_min_set(sd->spacer, minw, minh); 504 evas_object_size_hint_min_set(sd->spacer, minw, minh);
505 505
506 if (sd->main_layout)
507 {
508 Evas *ev = evas_object_evas_get(sd->main_layout);
509 if (evas_smart_objects_calculating_get(ev))
510 evas_object_smart_calculate(sd->main_layout);
511 else
512 evas_object_smart_need_recalculate_set(sd->main_layout, EINA_TRUE);
513 }
506 return; 514 return;
507 } 515 }
508 516