[elementary] Missing calc. on a gengrid's call.

SVN revision: 61703
This commit is contained in:
Gustavo Lima Chaves 2011-07-25 19:51:40 +00:00
parent 73b556f8fc
commit e86e02b9f9
1 changed files with 5 additions and 0 deletions

View File

@ -1907,7 +1907,9 @@ elm_gengrid_align_set(Evas_Object *obj,
double align_y)
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
double old_h = wd->align_x, old_y = wd->align_y;
if (align_x > 1.0)
align_x = 1.0;
@ -1920,6 +1922,9 @@ elm_gengrid_align_set(Evas_Object *obj,
else if (align_y < 0.0)
align_y = 0.0;
wd->align_y = align_y;
if ((old_h != wd->align_x) || (old_y != wd->align_y))
evas_object_smart_calculate(wd->pan_smart);
}
/**