ro31337 / jquery.ns-autogrow

Automatically adjust textarea width/height based on user input. Non-sucking version.
http://bit.ly/1NeshO8
166 stars 49 forks source link

ROWS attribute is ignored #22

Closed sur1969 closed 6 years ago

sur1969 commented 6 years ago

ROWS attribute is ignored causing the height of the textarea to become -14.

I had to add the following code after the minHeight is set:

if (minHeight <= 0) { if ($e.attr('rows') != undefined) { minHeight = $e.attr('rows') * 20; } else { minHeight = 20; } }

ro31337 commented 6 years ago

May I ask you for jsfiddle demo please?

sur1969 commented 6 years ago

Looks like another library is clashing with this. Autogrow on its own works fine.

sur1969 commented 6 years ago

Looks like it works in jsfiddle. There is probably another library clashing with it. Will dig deeper and get back to you if necessary. In the meantime i've closed the issue.

On 5 April 2018 at 16:44, Roman Pushkin notifications@github.com wrote:

May I ask you for jsfiddle demo please?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ro31337/jquery.ns-autogrow/issues/22#issuecomment-378981629, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbYkjJMf3trg3XNjJEPxgeckMOugsjUks5tljv0gaJpZM4TIley .