list: Use convenient macro ELM_RECTS_INCLUDE.

This commit is contained in:
Daniel Juyung Seo 2014-05-11 23:06:59 +09:00
parent 45e8b4c82e
commit d6a8cea94c
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ _elm_list_item_focused(Elm_List_Item *it)
return;
evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
evas_object_geometry_get(sd->hit_rect, &sx, &sy, &sw, &sh);
if ((x < sx) || (y < sy)|| ((x + w) > (sx + sw)) || ((y + h) > (sy + sh)))
if (!ELM_RECTS_INCLUDE(sx, sy, sw, sh, x, y, w, h))
{
switch (_elm_config->focus_autoscroll_mode)
{