Hi guys.

There is some reasonable code in the jquery.fx module which stops to
be reasonable when working with textareas.

1. jQuery.fx.prototype.update
It changes display to 'block', which may not be good for textareas.
I've made this workaround and you might want to add this 'inline'
option (or something more unified) too.

$.fx.prototype.originalUpdate = $.fx.prototype.update;
$.fx.prototype.update = false;
$.fx.prototype.update = function () {
    if (!this.options.inline) return this.originalUpdate.call(this);
    if ( this.options.step )
        this.options.step.call( this.elem, this.now, this );
        (jQuery.fx.step[this.prop] || jQuery.fx.step._default)
( this );
};


2. jQuery.fn.animate

if ( opt.overflow != null )
 this.style.overflow = "hidden";

Again, on textarea you shouldn't change overflow property in order to
"Make sure that nothing sneaks out".
No option needed for this.

Thanks guys. Hope to see these issues solved in the next release.

Reply via email to