Monday, May 28, 2012

Re: both CellTable.setWidth("100%", true). or css property table-layout:fixed fail

If the content can be wrapped, it will be wrapped; otherwise it'll be truncated rather than causing the column to be wider.
If you want your text to be kept on a single line, then use "white-space: nowrap".

On Monday, May 28, 2012 10:24:04 AM UTC+2, tong123123 wrote:
I double check the api in
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/CellTable.html#setTableLayoutFixed%28boolean%29
it said
Fixed Table Layout
When using the fixed table layout, cell contents are truncated as needed
but in my case it will not truncated!!

On Monday, May 28, 2012 4:05:41 PM UTC+8, tong123123 wrote:
I want the topic "Controlling Column Widths" in the link
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellTable
and I already set the Celltable table
table.setWidth("100%", true);

I also try to use css property
.tableLayout{
table-layout:fixed;
}

and then set this property to the celltable
table.addStyleName("tableLayout");

but the content still wrap to next line if its content is wider than the column width, how to make it truncate (overflow:hidden) the overflow content?

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate