interface_scrollable: remove unnecessary function call 98/124398/1
authorWonki Kim <wonki_.kim@samsung.com>
Tue, 14 Feb 2017 16:47:16 +0000 (01:47 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 11 Apr 2017 08:21:00 +0000 (17:21 +0900)
wanted_region_set should be called only when content size is changed.
similar logic in the pan_resized_cb would be invoked in the
pan_changed_cb.
it's duplicated and also diffrence against upstream.

this commit removes unnecessary function calls.
and also it removes diffrence against upstream.

@tizen_fix

Change-Id: Ia03d2a9c642b93f56cc99f6f2d8dc3c1f8228b1c
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/lib/elm_interface_scrollable.c

index a4de824..9f4a4e3 100644 (file)
@@ -4548,15 +4548,14 @@ _elm_scroll_pan_changed_cb(void *data,
         evas_object_size_hint_min_set
           (sid->edje_obj, sid->content_info.w, sid->content_info.h);
         sid->content_info.resized = EINA_TRUE;
-        //TIZEN_ONLY(20170210): update pan position once pan size is changed
-        //eo_do(sid->obj, elm_interface_scrollable_wanted_region_set(sid->wx, sid->wy));
+        //TIZEN_ONLY(20150825) : Use the specific wanted_region_set func only for gengrid.
+        eo_do(sid->obj, elm_interface_scrollable_wanted_region_set(sid->wx, sid->wy));
         //END
      }
    //TIZEN_ONLY(20170210): update pan position once pan size is changed
    //Bar should be updated on not only content size changed moment, but also pan pos/size updated moment
    _elm_scroll_scroll_bar_size_adjust(sid);
    _elm_scroll_scroll_bar_pos_adjust(sid);
-   eo_do(sid->obj, elm_interface_scrollable_wanted_region_set(sid->wx, sid->wy));
    //END
    return EINA_TRUE;
 }