Monday, March 31, 2014

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

I couldn't fix the <table> tag so I start to use Grid. But Grid din't recognize the break-word
 

<g:Grid addStyleNames="{style.myBreakWord}">  
   
<g:row>
       
<g:cell>
           Subject
       
</g:cell>
       
<g:customCell>
           
<g:Label text="Aaaaaaaa....very long a...aaaaaaaaaaa" />
       
</g:customCell>
     
</g:row>
 
</g:Grid>

in Css
.myBreakWord{
    word-wrap:break-word; 
    table-layout:fixed;
}

Is there anything wrong with my code?

On Monday, March 31, 2014 9:58:13 PM UTC+11, Jens wrote:
Do you know how to fix it?

The most basic example works: http://jsfiddle.net/84dsH/

So investigate your CSS using your browsers Dev Tools.

-- J.


--
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