diff options
author | Taehyub Kim <taehyub.kim@samsung.com> | 2017-08-17 19:27:53 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2017-11-16 17:24:30 +0900 |
commit | 830bf8b72de8dd8863da4df8f0098163923196dc (patch) | |
tree | 474ceb087b9758d0fb87abdaba763b115c773ae0 | |
parent | 840fdeb37581d280304c222d24ed167b7f91b0f9 (diff) | |
download | efl-830bf8b72de8dd8863da4df8f0098163923196dc.tar.gz |
efl_ui_popup: make popup size expandable
Summary: make popup size expandable
Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun
Differential Revision: https://phab.enlightenment.org/D5107
-rw-r--r-- | src/lib/elementary/efl_ui_popup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c index a8404cb89f..1f405769f5 100644 --- a/src/lib/elementary/efl_ui_popup.c +++ b/src/lib/elementary/efl_ui_popup.c @@ -183,6 +183,16 @@ _efl_ui_popup_elm_layout_sizing_eval(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED) edje_object_size_min_restricted_calc (wd->resize_obj, &minw, &minh, minw, minh); evas_object_size_hint_min_set(obj, minw, minh); + + Evas_Coord w, h; + evas_object_geometry_get(obj, NULL, NULL, &w, &h); + + if ((minw > w) && (minh < h)) + evas_object_resize(obj, minw, h); + else if ((minw < w) && (minh > h)) + evas_object_resize(obj, w, minh); + else if ((minw > w) && (minh > h)) + evas_object_resize(obj, minw, minh); } EOLIAN static void |