From: Gustavo Lima Chaves Date: Mon, 25 Jul 2011 19:51:40 +0000 (+0000) Subject: [elementary] Missing calc. on a gengrid's call. X-Git-Tag: v1.0.0~2447 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e02a4c44ad09941bea2aaa82d51ce156a47e38a;p=platform%2Fupstream%2Felementary.git [elementary] Missing calc. on a gengrid's call. SVN revision: 61703 --- diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 02eefb6..702e7fb 100644 --- a/src/lib/elm_gengrid.c +++ b/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); } /**