summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2017-08-17 19:27:53 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-28 17:15:42 +0900
commitb38ad0971cb3bf8d84fcfcce51fdc1cca73c460f (patch)
treec70e60463887c781747775d497a7b54ee034afdb
parent0005b3105e31556bdf22d0f124c6522d5a567387 (diff)
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.c10
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 a8404cb..1f40576 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)
183 edje_object_size_min_restricted_calc 183 edje_object_size_min_restricted_calc
184 (wd->resize_obj, &minw, &minh, minw, minh); 184 (wd->resize_obj, &minw, &minh, minw, minh);
185 evas_object_size_hint_min_set(obj, minw, minh); 185 evas_object_size_hint_min_set(obj, minw, minh);
186
187 Evas_Coord w, h;
188 evas_object_geometry_get(obj, NULL, NULL, &w, &h);
189
190 if ((minw > w) && (minh < h))
191 evas_object_resize(obj, minw, h);
192 else if ((minw < w) && (minh > h))
193 evas_object_resize(obj, w, minh);
194 else if ((minw > w) && (minh > h))
195 evas_object_resize(obj, minw, minh);
186} 196}
187 197
188EOLIAN static void 198EOLIAN static void