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(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));
+
+ //FIXME FIXME FIXME: Would you please fix me ?
+ //TIZEN_ONLY(20170227): Compensate scroller when scroller is not stable.
+ int current_calc = 0;
+ Evas_Coord x = 0, y = 0;
+ current_calc = evas_smart_objects_calculate_count_get(evas_object_evas_get(obj));
+ if (sid->requested_page.loop_cnt == current_calc)
+ {
+ ELM_SAFE_FREE(sid->scrollto.x.animator, ecore_animator_del);
+ ELM_SAFE_FREE(sid->scrollto.y.animator, ecore_animator_del);
+
+ x = sid->pagesize_h * sid->requested_page.h;
+ x = (sid->is_mirrored ? _elm_scroll_x_mirrored_get(sid->obj, x) : x);
+ y = sid->pagesize_v * sid->requested_page.v;
+
+ _elm_scroll_wanted_coordinates_update(sid, x, y);
+ eo_do(sid->pan_obj, elm_obj_pan_pos_set(x, y));
+ }
+ else
+ {
+ //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
+ }
//END
}
//TIZEN_ONLY(20170210): update pan position once pan size is changed
sid->current_page.x = _elm_scroll_page_x_get(sid, 0, EINA_FALSE);
sid->current_page.y = _elm_scroll_page_y_get(sid, 0, EINA_FALSE);
+ //FIXME FIXME FIXME: Would you please fix me ?
+ //TIZEN_ONLY(20170227): Compensate scroller when scroller is not stable.
+ sid->requested_page.h = pagenumber_h;
+ sid->requested_page.v = pagenumber_v;
+ sid->requested_page.loop_cnt = evas_smart_objects_calculate_count_get(evas_object_evas_get(obj));
+ //END
+
eo_do(sid->obj, elm_interface_scrollable_content_viewport_geometry_get
(NULL, NULL, &w, &h));
x = sid->pagesize_h * pagenumber_h;
x = sid->pagesize_h * pagenumber_h;
x = (sid->is_mirrored ? _elm_scroll_x_mirrored_get(sid->obj, x) : x);
y = sid->pagesize_v * pagenumber_v;
+
+ //FIXME FIXME FIXME: Would you please fix me ?
+ //TIZEN_ONLY(20170227): Compensate scroller when scroller is not stable.
+ sid->requested_page.h = pagenumber_h;
+ sid->requested_page.v = pagenumber_v;
+ sid->requested_page.loop_cnt = evas_smart_objects_calculate_count_get(evas_object_evas_get(obj));
+ //END
+
if (_elm_scroll_content_region_show_internal(obj, &x, &y, w, h))
{
_elm_scroll_scroll_to_x(sid, _elm_config->bring_in_scroll_friction, x);