Gengrid: fix position calculation
authordavemds <dave@gurumeditation.it>
Sat, 9 Aug 2014 13:47:59 +0000 (15:47 +0200)
committerdavemds <dave@gurumeditation.it>
Sat, 9 Aug 2014 13:47:59 +0000 (15:47 +0200)
commit71c46f7aad35a4fa4ef22c5f335d835fae82363c
treebab01d6c1a8453ecbff049ab931d42ff839c277c
parent4b52eaa37af7d3585a5b3870e90d28117d613543
Gengrid: fix position calculation

@fix
To calc the position in a table you need to make the modulo of the col/row size, not the modulo on the x/y value

This unbreak the elm_gengrid_item_pos_get() function that was reporting wrong values
src/lib/elm_gengrid.c