elm_widget: add logic for updating geometry after moving
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 16 Dec 2016 23:24:00 +0000 (15:24 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 16 Dec 2016 23:24:04 +0000 (15:24 -0800)
Summary:
scrollable object.

In multiple scrollable case, the target object should be updated.
Because the first object is scrolled. So the parent of the first object should be scrolled.

Reviewers: woohyun, Hermet, jpeg, cedric, raster

Differential Revision: https://phab.enlightenment.org/D4490

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elm_widget.c

index 91e965a37d3c4981014b6f4c8c6fef094c49ca32..c59a8ef214382a155348137202eebd86302fbd3d 100644 (file)
@@ -867,11 +867,8 @@ _elm_widget_focus_region_show(const Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNU
                    break;
                }
 
-             if (!elm_widget_focus_region_get(o, &x, &y, &w, &h))
-               {
-                  o = elm_widget_parent_get(o);
-                  continue;
-               }
+             elm_widget_focus_region_get(o, &x, &y, &w, &h);
+             evas_object_geometry_get(o, &ox, &oy, NULL, NULL);
           }
         else
           {