elementary: fix typo that causes incorrect horizontal item positioning on horizontal...
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Oct 2011 08:25:18 +0000 (08:25 +0000)
committeryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Oct 2011 08:25:18 +0000 (08:25 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63912 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gengrid.c

index 5583848..edda2f1 100644 (file)
@@ -1301,7 +1301,7 @@ _item_place(Elm_Gengrid_Item *item,
           }
         else
           {
-             x = (cx * item->wd->item_height) - item->wd->pan_x + ox + alignw;
+             x = (cx * item->wd->item_width) - item->wd->pan_x + ox + alignw;
              y = (((cy - item->prev_group) * item->wd->item_height) + (item->prev_group * item->wd->group_item_height)) - item->wd->pan_y + oy + alignh;
           }
         if (elm_widget_mirrored_get(item->wd->self))
@@ -1616,7 +1616,7 @@ _calc_job(void *data)
         count = wd->count + wd->items_lost - count_group;
         if (wd->horizontal)
           {
-             minw = (ceil(count / (float)nmax) * wd->item_width) + (count_group * wd->group_item_height);
+             minw = (ceil(count / (float)nmax) * wd->item_width) + (count_group * wd->group_item_width);
              minh = nmax * wd->item_height;
           }
         else