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
{
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)
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;
}
}