jaehyun pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=adddeabda258daba6f2fe5231f526b5d6690cc1b
commit adddeabda258daba6f2fe5231f526b5d6690cc1b Author: Taehyub Kim <taehyub....@samsung.com> Date: Fri Dec 8 16:02:56 2017 +0900 Efl.Ui.Popup: calculate the alignment when the size is changed Summary: calcuate the alignment when the size is changed Reviewers: Jaehyun_Cho, jpeg, thiepha, cedric, woohyun, Blackmole Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5554 --- src/lib/elementary/efl_ui_popup.c | 7 +++++++ src/lib/elementary/efl_ui_popup.eo | 1 + 2 files changed, 8 insertions(+) diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c index 9769605c18..dc52e78a78 100644 --- a/src/lib/elementary/efl_ui_popup.c +++ b/src/lib/elementary/efl_ui_popup.c @@ -75,6 +75,13 @@ _calc_align(Eo *obj) } } +EOLIAN static void +_efl_ui_popup_efl_gfx_size_set(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED, Eina_Size2D size) +{ + efl_gfx_size_set(efl_super(obj, MY_CLASS), size); + _calc_align(obj); +} + static void _parent_geom_cb(void *data, const Efl_Event *ev EINA_UNUSED) { diff --git a/src/lib/elementary/efl_ui_popup.eo b/src/lib/elementary/efl_ui_popup.eo index 3c36a4ded0..357b5d8773 100644 --- a/src/lib/elementary/efl_ui_popup.eo +++ b/src/lib/elementary/efl_ui_popup.eo @@ -44,6 +44,7 @@ class Efl.Ui.Popup(Efl.Ui.Layout, Efl.Content) Efl.Object.constructor; Efl.Object.destructor; Efl.Gfx.position { set; } + Efl.Gfx.size { set;} Efl.Gfx.visible { set; } Elm.Widget.widget_parent { set; } Efl.Content.content { get; set; } --