Background color not shown when cell label has no text in FlexTable
Hi!
This is a veeeery weird problem since it seems too bad to be true...
I have a FlexTable where all the cells are filled with Labels. Each cell has a CSS style since I want to update them individually when running the program.
The weird thing is that when a label is empty, as in Label emptyLabel = new Label(""); the background css won't show!
Has anyone heard of this?? :S
The java code:
eventTable = new FlexTable();
Label emptyLabel = new Label("");
eventTable.setWidget(row, 3,emptyLabel);
emptyLabel.setStyleName(tableCss.update());
CSS:
.update {
background-color: yellow;
}
Thanks in advance! :D
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home