summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnil Kumar Nahak <ak.nahak@samsung.com>2014-07-03 16:39:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-07-03 16:39:42 +0900
commitb58434fc0faf645a26e299d1f68f648acad20299 (patch)
treefe00a61916a2ebebcd0828721b5dfca071fd152e
parentf1cd199ad961056e97475c6d77525c1b37a575c1 (diff)
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
-rw-r--r--src/lib/elm_genlist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 2d2d1ece0..49535eb0b 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7487,7 +7487,7 @@ _elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_Ge
7487 { 7487 {
7488 *y = oy; 7488 *y = oy;
7489 } 7489 }
7490 else if (item_y > (oy + oh - item_h)) 7490 if (item_y > (oy + oh - item_h))
7491 { 7491 {
7492 *y = oy + oh - item_h; 7492 *y = oy + oh - item_h;
7493 } 7493 }
@@ -7496,6 +7496,10 @@ _elm_genlist_elm_widget_focus_highlight_geometry_get(Eo *obj EINA_UNUSED, Elm_Ge
7496 { 7496 {
7497 *w = item_w - (item_w - ow); 7497 *w = item_w - (item_w - ow);
7498 } 7498 }
7499 if (item_x < ox)
7500 {
7501 *x = ox;
7502 }
7499} 7503}
7500 7504
7501EOLIAN static Elm_Object_Item * 7505EOLIAN static Elm_Object_Item *