Text Area

How do we set the size of textArea to be constant. Or size cannot be reduced after it reaches min height (Min height set by us) and cannot resize more than the maz size we set in the application?

Textarea resizing is a browser CSS feature. For example, to disable resizing apply the following css (works at least in chrome, check compatibility with other browsers)


textarea {
   resize: none;
}

For more details, search the web for details about the “resize” css property.

Thanks… This works… now just need to figure out how to apply it to one TextArea and not to all…

In java :

textArea.addStyleName("noResizeTextArea")

In CSS :

.noResizeTextArea{
  resize: none;
}