diff options
author | Taehyub Kim <taehyub.kim@samsung.com> | 2017-11-20 19:50:11 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2017-11-20 19:50:11 +0900 |
commit | 00c3f110b0bc60c53cd081238a5e9227f7d9a90d (patch) | |
tree | bd3b9d6a8671fa45ae5c33f020da4155b0245436 | |
parent | 1744bd9b6b3bc2334e8f22b8acd3f6cbb108d915 (diff) | |
download | efl-00c3f110b0bc60c53cd081238a5e9227f7d9a90d.tar.gz |
Efl.Ui.Popup: add resize callback to update align
Summary: add resize callback to update align
Reviewers: Jaehyun_Cho, jpeg, woohyun, Blackmole, thiepha, cedric
Subscribers: jenkins
Differential Revision: https://phab.enlightenment.org/D5498
-rw-r--r-- | src/lib/elementary/efl_ui_popup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c index 114daa09c6..e2b0f9d330 100644 --- a/src/lib/elementary/efl_ui_popup.c +++ b/src/lib/elementary/efl_ui_popup.c @@ -79,6 +79,12 @@ _parent_geom_cb(void *data, const Efl_Event *ev EINA_UNUSED) _calc_align(data); } +static void +_resize_cb(void *data, const Efl_Event *ev EINA_UNUSED) +{ + _calc_align(ev->object); +} + EOLIAN static void _efl_ui_popup_elm_widget_widget_parent_set(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED, Eo *parent EINA_UNUSED) { @@ -212,6 +218,8 @@ _efl_ui_popup_efl_object_constructor(Eo *obj, Efl_Ui_Popup_Data *pd) edje_object_signal_callback_add(pd->backwall, "elm,action,clicked", "*", _backwall_clicked_cb, obj); + efl_event_callback_add(obj, EFL_GFX_EVENT_RESIZE, _resize_cb, NULL); + pd->align = EFL_UI_POPUP_ALIGN_CENTER; return obj; |