Friday, November 30, 2012

Re: Height of DataGrid



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 Interface and its containing widget FlexTable has not implements ProvidesResize?

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 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