On Friday, November 30, 2012 7:37:05 AM UTC+1, tong123123 wrote:
>
> I placed a datagrid inside a column of flextable and I found that I must 
> expliciitly set the height, and cannot use % like 100%, but % is allowed to 
> use in the width, why this happens? due to Datagrid implements 
> RequiresResize<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/RequiresResize.html>Interface
>  and its containing widget FlexTable has not implements 
> ProvidesResize<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/ProvidesResize.html>
> ?
>

Yes. When used outside ProvidesResize, RequiresResize widgets need to be 
given explicit dimensions *and* be notified whenever they change, so the 
rule of thumb is to use "fixed" sizes (pixels, centimeters, etc. EMs and 
EXs might work too, but not necessarily with all widgets)

-- 
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/-/_HMuXUsYkr8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to