genlist: focus of genlist item should adjust according to genlist's viewport

Summary: The focus of genlist should adjust its position on resizing(shrinking).

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D1072
This commit is contained in:
Anil Kumar Nahak 2014-07-03 16:39:41 +09:00 committed by Carsten Haitzler (Rasterman)
parent 9e5f8db4b9
commit 2b8e6862ac
1 changed files with 5 additions and 1 deletions

View File

@ -7487,7 +7487,7 @@ _elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_Ge
{
*y = oy;
}
else if (item_y > (oy + oh - item_h))
if (item_y > (oy + oh - item_h))
{
*y = oy + oh - item_h;
}
@ -7496,6 +7496,10 @@ _elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_Ge
{
*w = item_w - (item_w - ow);
}
if (item_x < ox)
{
*x = ox;
}
}
EOLIAN static Elm_Object_Item *