Gengrid: Fixed _elm_gengrid_item_edge_check for ELM_FOCUS_LEFT and ELM_FOCUS_RIGHT in horizontal mode.

Summary:
1|4         _elm_gengrid_item_edge_check for ELM_FOCUS_LEFT returns EINA_FALSE for item no. 3,
2|          which should return EINA_TRUE. Fixed this.
3|

1|4|7|      _elm_gengrid_item_edge_check for ELM_FOCUS_RIGHT returns EINA_FALSE for item no.5,
2|5|        which should return EINA_TRUE. Fixed this.
3|6|

Test Plan: elementary_test -to gengrid2

Reviewers: seoz, eagleeye, SanghyeonLee, raster

CC: seoz, raster

Differential Revision: https://phab.enlightenment.org/D846
This commit is contained in:
efl 2014-05-28 18:21:10 +09:00 committed by Carsten Haitzler (Rasterman)
parent 39eb7acec6
commit a6e1a0e2c8
1 changed files with 3 additions and 3 deletions

View File

@ -1947,7 +1947,7 @@ _elm_gengrid_item_edge_check(Elm_Object_Item *it,
{
row = cvh / sd->item_height;
if (row <= 0) row = 1;
if (tmp->position < row)
if (tmp->position <= row)
return EINA_TRUE;
}
else if (sd->item_width > 0)
@ -1974,13 +1974,13 @@ _elm_gengrid_item_edge_check(Elm_Object_Item *it,
if (x == 0)
{
if ((tmp->position <= (row * col)) &&
(tmp->position >= (row *(col - 1))))
(tmp->position > (row *(col - 1))))
return EINA_TRUE;
}
else
{
if ((tmp->position <= ((col * row) + x)) &&
(tmp->position >= (col * row)))
(tmp->position > ((col-1) * row) + x))
return EINA_TRUE;
}
}