diff options
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/effects.js b/src/effects.js index 3d9ae7f4b..f4f435fd2 100644 --- a/src/effects.js +++ b/src/effects.js @@ -282,26 +282,17 @@ function defaultPrefilter( elem, props, opts ) { if ( jQuery.css( elem, "display" ) === "inline" && jQuery.css( elem, "float" ) === "none" ) { - // inline-level elements accept inline-block; - // block-level elements need to be inline with layout - if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) { - style.display = "inline-block"; - - } else { - style.zoom = 1; - } + style.display = "inline-block"; } } if ( opts.overflow ) { style.overflow = "hidden"; - if ( !jQuery.support.shrinkWrapBlocks ) { - anim.done(function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - }); - } + anim.done(function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + }); } |