elm_box_align_set API fix
authorshilpa.singh <shilpa.singh@samsung.com>
Sun, 9 Nov 2014 09:01:15 +0000 (18:01 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sun, 9 Nov 2014 09:02:37 +0000 (18:02 +0900)
Summary:
Issue: elm_box_align_set APIs not working well
Solution: hint_set should not be called instead evas box align APIs
have to be used

@fix

Test Plan:
elementary test demo first page, though align is set as 0.0
0.5 it always shows as 0.5

Reviewers: Hermet, raster, seoz

Subscribers: rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D1622

src/lib/elm_box.c
src/lib/els_box.c

index b6a84db..41d536b 100644 (file)
@@ -678,8 +678,7 @@ _elm_box_align_set(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED, double horizontal, do
 {
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
 
-   evas_object_size_hint_align_set
-     (wd->resize_obj, horizontal, vertical);
+   evas_object_box_align_set(wd->resize_obj, horizontal, vertical);
 }
 
 EOLIAN static void
@@ -687,8 +686,7 @@ _elm_box_align_get(Eo *obj, Elm_Box_Data *_pd EINA_UNUSED, double *horizontal, d
 {
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
 
-   evas_object_size_hint_align_get
-     (wd->resize_obj, horizontal, vertical);
+   evas_object_box_align_get(wd->resize_obj, horizontal, vertical);
 }
 
 EOLIAN static void
index be0edc9..3d0566b 100644 (file)
@@ -152,7 +152,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, Eina_Bool horizontal
      }
    if (!expand)
      {
-        evas_object_size_hint_align_get(o, &ax, &ay);
+        evas_object_box_align_get(o, &ax, &ay);
         if (rtl) ax = 1.0 - ax;
         if (horizontal)
           {