Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Fails to initialize correctly when value exceeds max-height


Project:Auto Growing Textareas
Version:1.2.2
Component:Code
Category:bug report
Priority:normal
Assigned:liquidsculpture
Status:active
Description

If, upon page load the prepopulated value stored in the textarea is greater than the maximum height, the text area is shown as minimum height and will never grow.

My solution is: whenever the height exceeds the area's defined max-height, to first set it's height to the max-height. So, in checkExpand():

if (this.max_height > 0 && (this.dummy.height() + this.line_height > this.max_height))
{
this.textarea.height(this.max_height);
this.textarea.css('overflow-y', 'auto');
}
else
{ ...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

the patch in my ``various fixes'' bug should also fix this.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.