• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

three column, two column width is fixed, one is relative to 100%

 
peter tong
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume I have three column, I want the width of two column is fixed, but the remaining column width is relative (using 100%, for e.g.), and then I want if the content of that column is too long, the content will display in two line in that column, but not truncated, is this possible?
how about if four column, two column width is fixed and two column width is relative (each is 50%), if the content is longer than the relative width, the content will wrap to next line, is this possible?
in Gwt CellTable, it need set table layout to fixed, but this will cause the longer content to truncate, but not wrap to next line.
I use TextCell, Column<TextCell> for the column of CellTable.
the version of GWT is 2.4
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
table#setWidth("100%",true)
For flexible columns set the widths in PCT and not absolute units
 
peter tong
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try before, not work, if set table layout to fixed, then if the content of column is too long, it will truncate but not wrap to next line
(the true parameter means fixed layout)
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic