Hi
 
I need to make the width of the VerticalPanel constant. I have tried setwidth 
and setCellWidth, but both seem not working well.

For example,

VerticalPanel vp = new VerticalPanel();
vp.setCellWidth(this, "400px");
Label textlabel = new textlabel();
textlabel.add(text); <--
vp.add(textlabel);

If the text is a string containing various spaces, then the width is able to be 
kept because the wrap is on. Otherwise, if the text is a string without space 
longer than 400px, the string would not wrap. How can I make the width constant 
independent of the string?

Thanks


      

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to