'everything' bugfix

SVN revision: 47986
This commit is contained in:
Hannes Janetzek 2010-04-13 18:07:00 +00:00
parent 6701cecab9
commit 52746b6160
1 changed files with 5 additions and 2 deletions

View File

@ -666,6 +666,9 @@ _pan_item_select(Evas_Object *obj, Item *it, int scroll)
int align_to = -1;
int scroll = (prev > 0 ? cur - prev : 0);
if (rows > all)
rows = all;
if (scroll >= 0)
{
if (cur <= dist || all < rows)
@ -675,7 +678,7 @@ _pan_item_select(Evas_Object *obj, Item *it, int scroll)
align_to = cur;
}
else if ((all > rows) && (all - cur < rows - dist))
else if ((all >= rows) && (all - cur < rows - dist))
{
/* step down end */
align = (cur - dist);
@ -695,7 +698,7 @@ _pan_item_select(Evas_Object *obj, Item *it, int scroll)
align = 0;
align_to = cur;
}
else if ((all > rows) && (all - cur <= (rows - dist)))
else if ((all >= rows) && (all - cur < rows))
{
/* step up end */
align = (cur - dist);