Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Panel: Android 2.3.7 not scrolling to top when panel closes
Browse files Browse the repository at this point in the history
Fixes gh-6767
Closes gh-7822
  • Loading branch information
ldeluca authored and arschmitz committed Jan 8, 2015
1 parent b54b7e4 commit 0e1f405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/widgets/panel.js
Expand Up @@ -413,6 +413,9 @@ $.widget( "mobile.panel", {

self.element.addClass( o.classes.panelClosed );

//scroll to the top
self._positionPanel( true );

if ( o.display !== "overlay" ) {
currentPage.parent().removeClass( o.classes.pageContainer );
self._wrapper.removeClass( o.classes.pageContentPrefix + "-open" );
Expand Down

0 comments on commit 0e1f405

Please sign in to comment.