diff options
author | Anil Kumar Nahak <ak.nahak@samsung.com> | 2014-05-10 01:07:57 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-10 01:07:58 +0900 |
commit | 61eb33f25f68e4012b7fdfe496d6ac4740fe1786 (patch) | |
tree | b6899979138a7469ffdee6e05716dc07cdaee05a | |
parent | d03af718eff3b645b2d7b794b4a5dafc42af85db (diff) | |
download | elementary-61eb33f25f68e4012b7fdfe496d6ac4740fe1786.tar.gz |
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
-rw-r--r-- | src/lib/elm_gengrid.c | 2 | ||||
-rw-r--r-- | 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 38063bdfb..ae05e2809 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 656744820..79cfb4ebc 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) { |