From: raster Date: Wed, 26 Oct 2011 05:51:59 +0000 (+0000) Subject: [*] merge with svn revision 64406 X-Git-Tag: REL_F_I9200_20111102_1~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ab9377c8db97c0c1cd2a282d8814a75b581c992;p=framework%2Fuifw%2Felementary.git [*] merge with svn revision 64406 From: Jaehwan Kim I found a problem in els_scroller. When the scroller is resized, it shows the location of the coordination which was saved into wanted_coordination. If you don't use the page, it is no matter. But if you use the page function, the animation of the scroller is operated by _smart_scrollto_x_animator, not by _smart_momentum_animator. In _smart_scrollto_x_animator, therer isn't _update_wanted_coordinates. So the value of wanted_coordination doesn't update. I think _update_wanted_coordinates have to be added in _smart_scrollto_x_animator and _smart_scrollto_y_animator. Please check the attached patch file. Change-Id: I14f92c38047d165f5df322e1b25637c1794a0044 git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64406 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/els_scroller.c b/src/lib/els_scroller.c index 78128d4..caa66ce 100644 --- a/src/lib/els_scroller.c +++ b/src/lib/els_scroller.c @@ -453,12 +453,14 @@ _smart_scrollto_x_animator(void *data) { px = sd->scrollto.x.end; elm_smart_scroller_child_pos_set(sd->smart_obj, px, py); + _update_wanted_coordinates(sd, px, py); sd->scrollto.x.animator = NULL; if ((!sd->scrollto.y.animator) && (!sd->down.bounce_y_animator)) _smart_anim_stop(sd->smart_obj); return ECORE_CALLBACK_CANCEL; } elm_smart_scroller_child_pos_set(sd->smart_obj, px, py); + _update_wanted_coordinates(sd, px, py); return ECORE_CALLBACK_RENEW; } @@ -539,12 +541,14 @@ _smart_scrollto_y_animator(void *data) { py = sd->scrollto.y.end; elm_smart_scroller_child_pos_set(sd->smart_obj, px, py); + _update_wanted_coordinates(sd, px, py); sd->scrollto.y.animator = NULL; if ((!sd->scrollto.x.animator) && (!sd->down.bounce_x_animator)) _smart_anim_stop(sd->smart_obj); return ECORE_CALLBACK_CANCEL; } elm_smart_scroller_child_pos_set(sd->smart_obj, px, py); + _update_wanted_coordinates(sd, px, py); return ECORE_CALLBACK_RENEW; }