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<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.html>, 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<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.html>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.bro...@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. > See > https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Resize > (and > don't miss the "Recipes" section!) > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.