From 42e77e702e72d8100f5e3100296ea8cb2ad1b8ba Mon Sep 17 00:00:00 2001 From: "hc7.choi" Date: Thu, 30 May 2013 13:25:37 +0900 Subject: [PATCH] Scrollview : Fix horizontal scrollview incorrectly occur when rotate landscape Add to condition when changed clip width.(N_SE-38195) Change-Id: I57201a01ad9666b37cc30882642f9fa681010525 --- src/js/jquery.mobile.tizen.scrollview.js | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.7.4