mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-23 13:45:49 +00:00
Moved the resize event into the fixed toolbar plugin.
This commit is contained in:
parent
18c7d590ce
commit
5918e5ad9f
2 changed files with 3 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue