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

This commit is contained in:
Corey Frang 2012-07-20 18:07:45 -05:00
parent f8bdd6e192
commit 4e3d31e1ee

View File

@ -32,7 +32,7 @@ $.effects.effect.drop = function( o, done ) {
el.show();
$.effects.createWrapper( el );
distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]({ margin: true }) / 2;
distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
if ( show ) {
el