Friday, November 25, 2011

Mix Fixed and Relative Column Widths in CellTable?

I'm trying to have fixed width columns and relative width columns togheter, can't get it running.

As described here http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html I am trying to do it in this way:

table.addColumn(checkBoxColumn);
table.addColumn(nameColumn, constants.Name());
table.addColumn(emailColumn, constants.Email());

table.setWidth("100%", true);
table.setColumnWidth(checkBoxColumn, 10.0, Unit.PX);
table.setColumnWidth(nameColumn, 40.0, Unit.PCT);
table.setColumnWidth(emailColumn, 50.0, Unit.PCT);

But I can't make it work. I am on Chrome / Mac. 

Is there anything that I am doing bad?

--
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/-/2YzJ1v4lkNkJ.
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.

No comments:

Post a Comment