File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -308,14 +308,16 @@ define( [
308308 }
309309
310310 var self = this ,
311- menuHeight = self . list . parent ( ) . outerHeight ( ) ,
312- menuWidth = self . list . parent ( ) . outerWidth ( ) ,
311+ $window = $ ( window ) ,
312+ selfListParent = self . list . parent ( ) ,
313+ menuHeight = selfListParent . outerHeight ( ) ,
314+ menuWidth = selfListParent . outerWidth ( ) ,
313315 activePage = $ ( ".ui-page-active" ) ,
314316 tScrollElem = activePage ,
315- scrollTop = $ ( window ) . scrollTop ( ) ,
317+ scrollTop = $window . scrollTop ( ) ,
316318 btnOffset = self . button . offset ( ) . top ,
317- screenHeight = $ ( window ) . height ( ) ,
318- screenWidth = $ ( window ) . width ( ) ;
319+ screenHeight = $window . height ( ) ,
320+ screenWidth = $window . width ( ) ;
319321
320322 //add active class to button
321323 self . button . addClass ( $ . mobile . activeBtnClass ) ;
You can’t perform that action at this time.
0 commit comments