Wednesday, May 14, 2014

empty table widget size and reuse

I'd like to have an empty table widget in a DataGrid, which would cover the entire width and height of the table area. Basically, I'd like to just have a vertically and horizontally centered label.

Right now I can only get one that occupies the minimum area it needs based on it's content size, or I could fix a size in px.  But, trying to set the size to 100% for width and/or height has no effect, because it gets put inside a table that I believe I have no code access to.  And that table has no sizing specified. Is there a way to do this?

Question 2: I'd also like to have just one of these, to use across multiple grids.  But, assigning the same widget instance to all my grids doesn't work - I don't see it.   I suspect that it would show up for the last grid I added it to, if I can figure out which one that is.  It seems that the grid widget could store the reference and reattach it each time it's needed, allowing one single instance to be reused.

--
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/d/optout.

No comments:

Post a Comment