Inspect the DOM with your browser's Dev Tools and possibly experiment there.
On Wednesday, July 17, 2013 8:50:25 AM UTC+2, Goosie wrote:
-- On Wednesday, July 17, 2013 8:50:25 AM UTC+2, Goosie wrote:
Sounds like a logical solution but it still isn't working even though I have tried both changing the label's CSS and changing the width with cellformatter :(
emptyLabel.setStyleName(tableCss.emptyLabelWidth());
eventTable.setWidget(row, 4, emptyLabel);
emptyLabel.addStyleName(tableCss.update());
or:
CellFormatter cf = eventTable.getCellFormatter();
eventTable.setWidget(row, 4, emptyLabel);
cf.setWidth(row, 4, "20");
emptyLabel.setStyleName(tableCss.update());
On Tuesday, July 16, 2013 6:17:01 PM UTC+2, Jens wrote:An empty label has no width (0px), thus you can not see it. Either style the table cell itself instead of the table cell content ( = your Label) or give your empty label a width so you can see it. To style table cells itself you can use Column/Row/CellFormatter.-- 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/groups/opt_out.
No comments:
Post a Comment