[SVACE][WGID 25815][WID 76245] Integral division problem fixed 84/55784/1 accepted/tizen/common/20160113.151341 submit/tizen/20160105.115015 submit/tizen_common/20160112.161057 submit/tizen_common/20160112.161537
authorRadek Kintop <r.kintop@samsung.com>
Wed, 23 Dec 2015 11:58:24 +0000 (12:58 +0100)
committerMichal Pawluk <m.pawluk@samsung.com>
Tue, 29 Dec 2015 08:31:51 +0000 (09:31 +0100)
Change-Id: I3c9a3f166a388eeb12dfcdbfe0e1fb56671ee989
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
src/app_grid.c

index 5e3a2ac..bbd72df 100644 (file)
@@ -492,7 +492,7 @@ static void __app_grid_resize_cb(void *data, Evas *e, Evas_Object *obj, void *ei
                item_w = w/APP_COLS;
                item_h = h/APP_ROWS;
        } else if ((app_grid_type_t)data == APP_GRID_TYPE_FOLDER) {
-               item_w = w/FOLDER_COL_APPS - FOLDER_ITEM_MARGIN*home_screen_get_root_width();
+               item_w = (int)(w/FOLDER_COL_APPS - FOLDER_ITEM_MARGIN*home_screen_get_root_width());
                item_h = h/FOLDER_ROW_APPS;
        }