Bug Tracker

Ticket #2430: overflow.patch

File overflow.patch, 0.8 kB (added by soereen, 9 months ago)
  • src/fx.js

     
    6969        return this.animate({opacity: to}, speed, callback); 
    7070    }, 
    7171     
    72     animate: function( prop, speed, easing, callback ) { 
     72    animate: function( prop, speed, easing, callback, changeOverflow ) { 
    7373        var optall = jQuery.speed(speed, easing, callback); 
     74        // default value of change overflow is true 
     75        changeOverflow = typeof(changeOverflow) == "undefined" ?  true : changeOverflow; 
    7476 
    7577        return this[ optall.queue === false ? "each" : "queue" ](function(){ 
    7678            if ( this.nodeType != 1) 
     
    9294                } 
    9395            } 
    9496 
    95             if ( opt.overflow != null ) 
     97            if ( changeOverflow && opt.overflow != null ) 
    9698                this.style.overflow = "hidden"; 
    9799 
    98100            opt.curAnim = jQuery.extend({}, prop);