Fix the logic to set overflow:hidden on width & height animations - Fixes #12117 - Closes gh-869

This commit is contained in:
Corey Frang
2012-07-20 18:36:55 -05:00
parent 3016872220
commit 94924a05de
2 changed files with 15 additions and 1 deletions

2
src/effects.js vendored
View File

@@ -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