Moved the resize event into the fixed toolbar plugin.

This commit is contained in:
vtwoods 2011-05-18 18:17:41 -04:00
parent 18c7d590ce
commit 5918e5ad9f
2 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,6 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
.find('a:eq(0), .ui-btn-inner')
.addClass('ui-corner-bottom');
}
$(window).trigger('resize');
}
})
@ -106,7 +105,6 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
.find('a:eq(0), .ui-btn-inner')
.removeClass('ui-corner-bottom');
}
$(window).trigger('resize');
}
})
.trigger(o.collapsed ? 'collapse' : 'expand');

View file

@ -128,8 +128,10 @@ $.fixedToolbars = (function(){
$.fixedToolbars.show(true, this);
});
//When a collapsiable is hidden or shown we need to trigger the fixed toolbar to reposition itself (#1635)
$('.ui-collapsible-contain').live('collapse',showEventCallback);
$('.ui-collapsible-contain').live('expand',showEventCallback);
// element.getBoundingClientRect() is broken in iOS 3.2.1 on the iPad. The
// coordinates inside of the rect it returns don't have the page scroll position
// factored out of it like the other platforms do. To get around this,