开发者

Disabling line wrapping in a TextArea

开发者 https://www.devze.com 2023-01-26 07:18 出处:网络
I\'m using GWT 开发者_开发技巧2.1.I have a TextArea that I\'m using to preview a document, and I don\'t want lines that are too long to fit to wrap - I want a horizontal scrollbar to appear.

I'm using GWT 开发者_开发技巧2.1. I have a TextArea that I'm using to preview a document, and I don't want lines that are too long to fit to wrap - I want a horizontal scrollbar to appear.

There's no setWrap method I can find in TextArea - how can I achieve this?


textArea.getElement().setAttribute("wrap", "off");
0

精彩评论

暂无评论...
验证码 换一张
取 消