bgrins / ExpandingTextareas

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

Cant set max-height for textarea #24

Closed vikas-github closed 11 years ago

vikas-github commented 11 years ago

is there any way by which I can limit the height of the textarea, after exceeding the limit height, it should start showing jquery scrollbar

bgrins commented 11 years ago

Try setting this in CSS:

.expandingText {
   max-height: 100px;
}
vikas-github commented 11 years ago

you can put feature of jquery scroll, instead of that default scroll....it looks bad

bgrins commented 11 years ago

There is also a demo on http://bgrins.github.com/ExpandingTextareas/ with the max height being set

vikas-github commented 11 years ago

Yeah I got that about adding max-height....now I am talking about adding feature of jquery scroll instead of that default scroll that appears after exceeding max-height limit

bgrins commented 11 years ago

There are other plugins or even CSS rules that you can use to restyle the default scrollbar. Try searching for "custom scrollbar CSS". Just apply the CSS to the same element that has the max-height set and you should be good to go.

On Mar 30, 2013, at 2:02 AM, vikas-github notifications@github.com wrote:

Yeah I got that about adding max-height....now I am talking about adding feature of jquery scroll instead of that default scroll that appears after exceeding max-height limit

— Reply to this email directly or view it on GitHub.