Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gwt 禁用文本区域中的换行_Gwt_Gwt2 - Fatal编程技术网

Gwt 禁用文本区域中的换行

Gwt 禁用文本区域中的换行,gwt,gwt2,Gwt,Gwt2,我正在使用GWT2.1。我有一个用于预览文档的文本区域,我不希望行太长而无法换行,我希望出现一个水平滚动条 在TextArea中找不到setWrap方法-如何实现这一点?另请参见:,其中包含有关包装TextArea html标记及其问题的详细信息。另请参见:,其中包含有关包装TextArea html标记及其问题的详细信息。 textArea.getElement().setAttribute("wrap", "off");

我正在使用GWT2.1。我有一个用于预览文档的文本区域,我不希望行太长而无法换行,我希望出现一个水平滚动条

在TextArea中找不到setWrap方法-如何实现这一点?

另请参见:,其中包含有关包装TextArea html标记及其问题的详细信息。另请参见:,其中包含有关包装TextArea html标记及其问题的详细信息。
textArea.getElement().setAttribute("wrap", "off");