elm_widget: add logic for updating geometry after moving
authorHosang Kim <hosang12.kim@samsung.com>
Tue, 13 Dec 2016 11:19:45 +0000 (20:19 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:08 +0000 (14:37 +0900)
scrollable object.

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

Change-Id: I9f8198fb0d9f4ac5c993574e7f9d7dd2b58ad402

src/lib/elm_widget.c

index 0c1e8e3..69d8dd1 100644 (file)
@@ -824,11 +824,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
           {