GWT textarea widget - disable word wrap

169 views
Skip to first unread message

dsinnett

unread,
Nov 10, 2009, 4:37:46 PM11/10/09
to Google Web Toolkit
Hello,

I am wondering if there is a way to disable word wrap in the textarea
GWT widget.

What I am doing is generating a large text output that will be
displayed in the text area. it is critical that each line stays on
its own line and not word wrapped. What i am hoping for is a way that
I can either disable word-wrap and get a horizontal scroll bar if the
text extends past the left edge of the textarea or even a way to
dynamically size the text area so that the width is large enough to
contain the longest line.

Thank you in advance for your help!

Dan

dsinnett

unread,
Nov 24, 2009, 1:29:52 PM11/24/09
to Google Web Toolkit
I actually figured it out. It is actually a browser issue than a
widget issue. I ended up creating a textarea within an htmlpanel so
that I could apply the wrap=off parameter to the textarea. That works
now in firefox as expected.
Reply all
Reply to author
Forward
0 new messages