Saturday, March 29, 2014

Why “word-wrap” css style doesn't work inside a <table> (GWT)?

We got this css to make a long string (without any space in it, URL for example) to fall into many new lines rather than just show 1 line:

.wordWrap{  word-wrap:break-word;  }

in .xml file

<table>      <tr>         <td>            <g:HTMLPanel ui:field="myPanel" addStyleNames="{style.wordWrap}" > <g:Label text="Aaaaaa..very long string without any space in it... aa"> <g:/HTMLPanel>         </td>      </tr>  </table>

This does not work.

However, if we remove the <table> then it work fine

So Why "word-wrap" css style doesn't work inside a (GWT)?

(http://stackoverflow.com/questions/22740185/why-word-wrap-css-style-doesnt-work-inside-a-table-gwt)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment