mirror of
https://github.com/jquery/jquery.git
synced 2026-02-15 06:34:56 -05:00
Fix the logic to set overflow:hidden on width & height animations - Fixes #12117 - Closes gh-869
This commit is contained in:
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -269,7 +269,7 @@ function defaultPrefilter( elem, props, opts ) {
|
||||
}
|
||||
|
||||
// height/width overflow pass
|
||||
if ( elem.nodeType === 1 && ( props.height || props.width ) ) {
|
||||
if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
|
||||
// Make sure that nothing sneaks out
|
||||
// Record all 3 overflow attributes because IE does not
|
||||
// change the overflow attribute when overflowX and
|
||||
|
||||
Reference in New Issue
Block a user