Tuesday, January 14, 2014

Re: How can I set correct size of widgets in a SplitLayoutPanel ?

jaga was pointing out that your FlowPanel is not equipped to resize the DataGrid.  If you look at DataGrid it implements RequiresResize indicating that whatever its parent Widget is must tell it when to resize itself.  You could replace the FlowPanel with a LayoutPanel, DockLayoutPanel, HeaderPanel or a custom panel.  It really just depends on how you want it to act and how much overhead you are willing to accept.  If you went the LayoutPanel route, you wouldn't set the DataGrid's size to 100% allowing it to calculate how many pixels it can occupy.
 

On Tuesday, January 14, 2014 7:25:35 AM UTC-5, Jostein wrote:
Thank you for your answer

May I ask what you would recommend to achieve the same as I want? I need in each of the child panels (West, North and center) to have a header containing title, buttons to add data etc. and a table below to view the data. What kind of panels and widgets would you suggest I should use?
Btw, I use Layout panels all the way upp to RootLayoutPanel. 

Jostein

kl. 21:18:29 UTC+1 mandag 13. januar 2014 skrev jaga følgende:
While perhaps not directly related to your issue I feel it might be worth pointing out some issues regarding layout panels.

Please make sure you read up on layout panels. See the gwt web site for an article. Also note that the DataGrid is a fussy widget which may not display unless it is both explicitly resized and placed within a layout panel itself directly. The flowpanel and flextable are not layout panels.

James

--
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/groups/opt_out.

No comments:

Post a Comment