Update $.fn.animate to only keep overflow set to hidden after an animation in IE6 when it is needed (width/height change) and update unit tests to reflect when overflow does not get reset.
This commit is contained in:
parent
5057ff9f43
commit
91028794d5
2 changed files with 16 additions and 20 deletions
4
src/effects.js
vendored
4
src/effects.js
vendored
|
@ -175,7 +175,7 @@ jQuery.fn.extend({
|
|||
}
|
||||
}
|
||||
|
||||
if ( opt.overflow != null || (jQuery.support.shrinkWrapBlocks && isElement) ) {
|
||||
if ( opt.overflow != null ) {
|
||||
this.style.overflow = "hidden";
|
||||
}
|
||||
|
||||
|
@ -408,7 +408,7 @@ jQuery.fx.prototype = {
|
|||
|
||||
if ( done ) {
|
||||
// Reset the overflow
|
||||
if ( this.options.overflow != null && (!jQuery.support.shrinkWrapBlocks || !jQuery.css( this.elem, "hasLayout" )) ) {
|
||||
if ( this.options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
|
||||
this.elem.style.overflow = this.options.overflow[0];
|
||||
this.elem.style.overflowX = this.options.overflow[1];
|
||||
this.elem.style.overflowY = this.options.overflow[2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue