raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b58434fc0faf645a26e299d1f68f648acad20299

commit b58434fc0faf645a26e299d1f68f648acad20299
Author: Anil Kumar Nahak <ak.na...@samsung.com>
Date:   Thu Jul 3 16:39:41 2014 +0900

    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
---
 src/lib/elm_genlist.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 2d2d1ec..49535eb 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
      {
         *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 *

-- 


Reply via email to