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
This commit is contained in:
Taehyub Kim 2017-12-08 16:02:56 +09:00 committed by Jaehyun Cho
parent 9128b9001f
commit adddeabda2
2 changed files with 8 additions and 0 deletions

View File

@ -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)
{

View File

@ -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; }