forked from enlightenment/efl
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:
parent
9128b9001f
commit
adddeabda2
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue