bgrins / ExpandingTextareas

jQuery plugin for elegant expanding textareas
http://bgrins.github.com/ExpandingTextareas/
MIT License
261 stars 73 forks source link

Prevent initialization if textarea is invisible #41

Closed domchristie closed 10 years ago

domchristie commented 10 years ago

This checks to see if the given textarea is in the DOM and is visible (by checking if the element has a width or height, as jQuery does)—and only initializes the plugin if those checks pass.

Fixes #29 and #32

bgrins commented 10 years ago

Merged and pushed to: http://bgrins.github.io/ExpandingTextareas

bgrins commented 10 years ago

@domchristie thanks again!