Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Panel: no longer jump up on resize
should not scroll to top in just resize window

Fixes jquery-archivegh-7572
Closes jquery-archivegh-7674
  • Loading branch information
Sho Sawada authored and Gabriel Schulhof committed Apr 2, 2015
1 parent 283fff5 commit 23294ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/panel.js
Expand Up @@ -170,7 +170,7 @@ $.widget( "mobile.panel", {
self._unfixPanel();
$.mobile.resetActivePageHeight( panelInnerHeight );
}
if ( scrollToTop ) {
if ( scrollToTop === true ) {
this.window[ 0 ].scrollTo( 0, $.mobile.defaultHomeScroll );
}
} else {
Expand Down

0 comments on commit 23294ef

Please sign in to comment.