Bug Tracker

Ticket #1726: 1726.diff

File 1726.diff, 936 bytes (added by davidserduke, 8 years ago)
  • src/fx.js

     
    293293                this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
    294294                this.options.show = true;
    295295
    296                 // Begin the animation
    297                 this.custom(0, this.cur());
     296                // Begin the animation - start from 1 to avoid flashing in IE
     297                this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
    298298
    299299                // Make sure that we start at a small width/height to avoid any
    300300                // flash of content
     
    311311                this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
    312312                this.options.hide = true;
    313313
    314                 // Begin the animation
    315                 this.custom(this.cur(), 0);
     314                // Begin the animation - end at 1 to avoid flashing in IE
     315                this.custom(this.cur(), this.prop == "width" || this.prop == "height" ? 1 : 0);
    316316        },
    317317
    318318        // Each step of an animation