开发者

Disabling line wrapping in a TextArea

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜