projects
/
framework
/
web
/
web-ui-fw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c083d0b
)
Scrollview : Fix horizontal scrollview incorrectly occur when rotate landscape
author
hc7.choi
<hc7choi@hc7.choi>
Thu, 30 May 2013 04:25:37 +0000
(13:25 +0900)
committer
hc7.choi
<hc7choi@hc7.choi>
Fri, 31 May 2013 09:02:56 +0000
(18:02 +0900)
Add to condition when changed clip width.(N_SE-38195)
Change-Id: I57201a01ad9666b37cc30882642f9fa681010525
src/js/jquery.mobile.tizen.scrollview.js
patch
|
blob
|
history
diff --git
a/src/js/jquery.mobile.tizen.scrollview.js
b/src/js/jquery.mobile.tizen.scrollview.js
index
9ae128b
..
b2f6154
100644
(file)
--- 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;