Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core

This commit is contained in:
Corey Frang 2012-07-20 18:50:34 -05:00
parent 85d259483e
commit ed64ccfef4

View File

@ -29,9 +29,7 @@ $.effects.effect.slide = function( o, done ) {
// Adjust
$.effects.save( el, props );
el.show();
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
margin: true
});
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
$.effects.createWrapper( el ).css({
overflow: "hidden"