Permalink
Browse files

Panel: wait with calling positionPanel() until class ui-panel-close i…

…s removed.

This is a correction of commit 739e286 and prevents wrong min-height for the page (unnecessary scrollbar) because ui-panel-close has width 0.
  • Loading branch information...
jaspermdegroot committed Apr 2, 2013
1 parent 307ff5e commit 4eb53e8c8a7969dbd3d4f422fb54e569ce3ef5c8
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/widgets/panel.js
View
@@ -290,7 +290,6 @@ $.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 );
@@ -306,6 +305,8 @@ $.widget( "mobile.panel", $.mobile.widget, {
self.element.removeClass( o.classes.panelClosed ).addClass( o.classes.panelOpen );
self._positionPanel();
self._contentWrapOpenClasses = self._getPosDisplayClasses( o.classes.contentWrap );
self._wrapper
.removeClass( o.classes.contentWrapClosed )

0 comments on commit 4eb53e8

Please sign in to comment.