summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAnil Kumar Nahak <ak.nahak@samsung.com>2014-05-10 01:07:57 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-05-10 01:07:58 +0900
commit61eb33f25f68e4012b7fdfe496d6ac4740fe1786 (patch)
treeb6899979138a7469ffdee6e05716dc07cdaee05a /src/lib
parentd03af718eff3b645b2d7b794b4a5dafc42af85db (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_gengrid.c2
-rw-r--r--src/lib/elm_genlist.c2
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 *
4280{ 4280{
4281 Evas_Coord ox, oy, oh, ow, item_x = 0, item_y = 0, item_w = 0, item_h = 0; 4281 Evas_Coord ox, oy, oh, ow, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
4282 4282
4283 evas_object_geometry_get(obj, &ox, &oy, &ow, &oh); 4283 evas_object_geometry_get(sd->pan_obj, &ox, &oy, &ow, &oh);
4284 4284
4285 if (sd->focused_item) 4285 if (sd->focused_item)
4286 { 4286 {
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
7422{ 7422{
7423 Evas_Coord ox, oy, oh, item_x = 0, item_y = 0, item_w = 0, item_h = 0; 7423 Evas_Coord ox, oy, oh, item_x = 0, item_y = 0, item_w = 0, item_h = 0;
7424 7424
7425 evas_object_geometry_get(obj, &ox, &oy, NULL, &oh); 7425 evas_object_geometry_get(sd->pan_obj, &ox, &oy, NULL, &oh);
7426 7426
7427 if (sd->focused_item) 7427 if (sd->focused_item)
7428 { 7428 {