Wednesday, May 30, 2012

Re: How to make CellTable Header always on top

I really get confused.
in my result page, the hierarchy of widget is DialogBox encloses TabLayoutPanel encloses FlexTable, the FlexTable has three rows.
in the first row, after I add a SimpleLayoutPanel with setSize("100%", "360px");
and then encloses the DataGrid inside SimpeLayoutPanel, the DataGrid can shown now.
But the problem is...SimpleLayoutPanel is also implements RequiresResize, so why can I just use "100%" but not an exact "px" unit?
The TabLayoutPanel has an explicit size in unit of px, then the FlexTable has setWidth("100%"), is this the cause so I can use just % in the enclosing SimpeLayoutPanel?
Also, I see DialogBox has not implements RequiresResize and ProvideResizes, so if the outer browser windows shrink, the DialogBox will not resize accordingly, this is expected, right?

On Wed, May 30, 2012 at 2:50 PM, Thomas Broyer <t.broyer@gmail.com> wrote:

ScrollPanel is also a RequiresResize, so it won't help. You have to give your DataGrid (or whatever RequiresResize+ProvidesResize parent) a size in pixels.

--
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/-/PpPCjAW-Px0J.

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.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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