forked from enlightenment/efl
elm_box_align_set API fix
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
This commit is contained in:
parent
d883aa2499
commit
9cb07eb5fa
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue