From e86e02b9f92dc7a8f551d78a9a1e3c03939c7f18 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Mon, 25 Jul 2011 19:51:40 +0000 Subject: [PATCH] [elementary] Missing calc. on a gengrid's call. SVN revision: 61703 --- legacy/elementary/src/lib/elm_gengrid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c index 02eefb6223..702e7fb8ce 100644 --- a/legacy/elementary/src/lib/elm_gengrid.c +++ b/legacy/elementary/src/lib/elm_gengrid.c @@ -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); } /**