PDA

View Full Version : Can't set "scroll : vertical" to a textareafield



wawrek
21 Feb 2011, 2:52 AM
Can't set "scroll : vertical" to a textareafield (Ext.form.TextArea).
I tried to set " scroll : 'vertical' " while creating the form:

http://dpaste.com/437010/

If I do it like in the dpaste ticket, the content of the textarea is not visible anymore, it seems to have a height but not the width..

Later on, I tried to declare it when the form is already rendered:
Ext.getCmp("descriptionTextArea").setScrollable("vertical");
or like that:
Ext.getCmp("descriptionTextArea").fieldEl.dom.setScrollable("vertical");

the last one returns this error :
Uncaught TypeError: Object #<an HTMLTextAreaElement> has no method 'setScrollable'