Efl.Ui.Popup: calculate the alignment when the size is changed
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 8 Dec 2017 07:02:56 +0000 (16:02 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 11 Dec 2017 04:32:11 +0000 (13:32 +0900)
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
src/lib/elementary/efl_ui_popup.eo

index 9769605..dc52e78 100644 (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)
 {
index 3c36a4d..357b5d8 100644 (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; }