Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Height for Text Area #812

Closed
beeterry opened this issue Jul 22, 2016 · 1 comment
Closed

Max Height for Text Area #812

beeterry opened this issue Jul 22, 2016 · 1 comment

Comments

@beeterry
Copy link

Is there a way to set a "max-height" for the text area? For example, I want to be able to set a max-height of 300px on the text-area, so that when the user hits that 300px mark and they press the enter key, it won't let them drop down any below that height.

@jhchen
Copy link
Member

jhchen commented Jul 22, 2016

You can just use the max-height css style if you want to allow scrolling. If you want enter to not do anything if that would exceeds the height then you'll have to combine some API listeners and calls. Note this is pretty brittle though since there are many ways for height to change such as applying formatting or text wrapping.

@jhchen jhchen closed this as completed Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants