raster pushed a commit to branch master.
http://git.enlightenment.org/core/elementary.git/commit/?id=c0d93aa4bfbed577493a9ff4d7de3c6586d9bc2c
commit c0d93aa4bfbed577493a9ff4d7de3c6586d9bc2c
Author: efl <efl@efl.(none)>
Date: Wed May 28 18:21:10 2014 +0900
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
---
src/lib/elm_gengrid.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 11b7254..37f8cd2 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -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;
}
}
--