Permalink
Browse files

Panel: Call positionPanel() before we start opening the panel.

This prevents a vertical scrollbar on the page div when opening a long panel on a short page.
  • Loading branch information...
1 parent 412fa36 commit 739e286b435b9f856f69e6f790b239d4dbb9b957 @jaspermdegroot jaspermdegroot committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/panel.js
View
@@ -290,6 +290,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
_openPanel = function() {
self._page.off( "panelclose" );
self._page.jqmData( "panel", "open" );
+ self._positionPanel();
if ( !immediate && $.support.cssTransform3d && !!o.animate ) {
self.element.add( self._wrapper ).on( self._transitionEndEvents, complete );
@@ -325,7 +326,6 @@ $.widget( "mobile.panel", $.mobile.widget, {
self._page.addClass( o.classes.pagePanelOpen );
- self._positionPanel();
self._bindFixListener();
self._trigger( "open" );

0 comments on commit 739e286

Please sign in to comment.