Tuesday, September 4, 2012

Re: fundamental problems with predictive layout

When you add a widget to a LayoutPanel, it automatically takes the entire space within that LayoutPanel, unless you use .setWidgetTopHeight or similar methods to specify which part of the LayoutPanel this widget should occupy. If your FlowPanel has size 0, this means that your LayoutPanel has size 0. Where does your LayoutPanel take it size from? Typically it should take it from the root panel. This is the point where you may have a problem. LayoutPanels always have heigh = 0, unless they get their height from a parent widget, or their size is set explicitly in code.

By the way, implements RequiresResize is unnecessary in your code, because you init your Composite as a LayoutPanel, and it already has all the functionality that you need.

--
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/-/8EJ2yLQC4AEJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate