projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0005b31
)
efl_ui_popup: make popup size expandable
author
Taehyub Kim
<taehyub.kim@samsung.com>
Thu, 17 Aug 2017 10:27:53 +0000
(19:27 +0900)
committer
Jaehyun Cho
<jae_hyun.cho@samsung.com>
Tue, 28 Nov 2017 08:15:42 +0000
(17:15 +0900)
Summary: make popup size expandable
Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun
Differential Revision: https://phab.enlightenment.org/D5107
src/lib/elementary/efl_ui_popup.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/efl_ui_popup.c
b/src/lib/elementary/efl_ui_popup.c
index
a8404cb
..
1f40576
100644
(file)
--- 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