From: Enlightenment S. <no-...@en...> - 2011-10-07 08:25:25
|
Log: elementary: fix typo that causes incorrect horizontal item positioning on horizontal gengrids. From Benjamin Drucker Author: yoz Date: 2011-10-07 01:25:18 -0700 (Fri, 07 Oct 2011) New Revision: 63912 Trac: http://trac.enlightenment.org/e/changeset/63912 Modified: trunk/elementary/src/lib/elm_gengrid.c Modified: trunk/elementary/src/lib/elm_gengrid.c =================================================================== --- trunk/elementary/src/lib/elm_gengrid.c 2011-10-07 08:03:29 UTC (rev 63911) +++ trunk/elementary/src/lib/elm_gengrid.c 2011-10-07 08:25:18 UTC (rev 63912) @@ -1301,7 +1301,7 @@ } 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 @@ 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 |