From: hc7.choi Date: Thu, 30 May 2013 04:25:37 +0000 (+0900) Subject: Scrollview : Fix horizontal scrollview incorrectly occur when rotate landscape X-Git-Tag: submit/tizen_2.2/20130714.154816~14^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42e77e702e72d8100f5e3100296ea8cb2ad1b8ba;p=framework%2Fweb%2Fweb-ui-fw.git Scrollview : Fix horizontal scrollview incorrectly occur when rotate landscape Add to condition when changed clip width.(N_SE-38195) Change-Id: I57201a01ad9666b37cc30882642f9fa681010525 --- diff --git a/src/js/jquery.mobile.tizen.scrollview.js b/src/js/jquery.mobile.tizen.scrollview.js index 9ae128b..b2f6154 100644 --- a/src/js/jquery.mobile.tizen.scrollview.js +++ b/src/js/jquery.mobile.tizen.scrollview.js @@ -1417,10 +1417,16 @@ define( [ ], function ( ) { /* calibration - after triggered throttledresize */ setTimeout( function () { + var view_w = self._getViewWidth(), + cw = $c.width(); if ( self._sy < $c.height() - self._getViewHeight() ) { self.scrollTo( 0, $c.height() - self._getViewHeight(), self.options.overshootDuration ); } + if ( self._sx < cw - view_w ) { + self.scrollTo( cw - view_w, 0, + self.options.overshootDuration ); + } }, 260 ); self._view_height = view_h;