Merge pull request #1656 from VTWoods/bug_1635

#1635 Collapsible not triggering resize event. Fixes #1635
This commit is contained in:
Scott Jehl 2011-05-18 15:30:11 -07:00
commit 24fff18186
2 changed files with 3 additions and 2 deletions

View file

@ -105,7 +105,6 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
.find('a:eq(0), .ui-btn-inner')
.removeClass('ui-corner-bottom');
}
}
})
.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,