seoz pushed a commit to branch master.

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

commit 61eb33f25f68e4012b7fdfe496d6ac4740fe1786
Author: Anil Kumar Nahak <[email protected]>
Date:   Sat May 10 01:07:57 2014 +0900

    genlist/gengrid: Use pan object geometry for focus highlight calculation
    
    Summary: Genlist/gengrid object geometry was used before this patch but 
using the pan object geometry is more correct. This can be reproduced when the 
size of "elm.swallow.content" part is smaller then the size of scroller object, 
focus animtaion on items is jerky.
    
    Reviewers: raster, seoz, singh.amitesh
    
    CC: nirajkr
    
    Differential Revision: https://phab.enlightenment.org/D818
---
 src/lib/elm_gengrid.c | 2 +-
 src/lib/elm_genlist.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 38063bd..ae05e28 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -4280,7 +4280,7 @@ _elm_gengrid_elm_widget_focus_highlight_geometry_get(Eo 
*obj, Elm_Gengrid_Data *
 {
    Evas_Coord ox, oy, oh, ow, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
 
-   evas_object_geometry_get(obj, &ox, &oy, &ow, &oh);
+   evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh);
 
    if (sd->focused_item)
      {
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 6567448..79cfb4e 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7422,7 +7422,7 @@ _elm_genlist_elm_widget_focus_highlight_geometry_get(Eo 
*obj EINA_UNUSED, Elm_Ge
 {
    Evas_Coord ox, oy, oh, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
 
-   evas_object_geometry_get(obj, &ox, &oy, NULL, &oh);
+   evas_object_geometry_get(sd->pan_obj, &ox, &oy, NULL, &oh);
 
    if (sd->focused_item)
      {

-- 


Reply via email to