mirror of
https://github.com/moparisthebest/app-UI
synced 2024-12-21 23:18:52 -05:00
added the radix to parseInt()
added the decimal radix (10) to the function calls of parseInt()
This commit is contained in:
parent
214f9cd9b6
commit
9f26e42049
@ -155,10 +155,10 @@ ViewNavigator.prototype.updateView = function( viewDescriptor ) {
|
||||
var originalTopMargin = children.css( 'margin-top' );
|
||||
children.attr( 'originalTopMargin', originalTopMargin );
|
||||
|
||||
var cssString = 'translate3d(0px, '+(parseInt( scrollY ) + parseInt( originalTopMargin )).toString()+'px, 0px)';
|
||||
var cssString = 'translate3d(0px, '+(parseInt( scrollY, 10 ) + parseInt( originalTopMargin, 10 )).toString()+'px, 0px)';
|
||||
children.css( '-webkit-transform', cssString );
|
||||
|
||||
// children.css( 'margin-top', (parseInt( scrollY ) + parseInt( originalTopMargin )).toString() + 'px' );
|
||||
// children.css( 'margin-top', (parseInt( scrollY, 10 ) + parseInt( originalTopMargin, 10 )).toString() + 'px' );
|
||||
}
|
||||
}
|
||||
|
||||
@ -309,7 +309,7 @@ ViewNavigator.prototype.resetScroller = function() {
|
||||
}
|
||||
self.scroller = new iScroll( id );
|
||||
if ( currentViewDescriptor.maintainScrollPosition !== false && scrollY != undefined && scrollY != '' ) {
|
||||
self.scroller.scrollTo( 0, parseInt( scrollY ) );
|
||||
self.scroller.scrollTo( 0, parseInt( scrollY, 10 ) );
|
||||
}
|
||||
}, 10 );
|
||||
//this.scroller = new iScroll( id );
|
||||
|
Loading…
Reference in New Issue
Block a user