In general, the *LayoutPanels need one of the LayoutPanels as their parents because of the absolute positioning CSS magic GWT is doing to make the layouts work. You can switch to using one of the LayoutPanels as a parent; set a height value for the StackLayoutPanel in your code (which is obviously inflexible and doesn't change based on how many things you have in your panel, so that generally doesn't work); override the position: absolute on the element and make it position: relative so that it will expand fluidly (which is a bit hacky for my taste and might need to be touched with new versions of GWT); or you can extend the StackLayoutPanel and override the display/create your own widget. You might also be able to extend SimplePanel and add whatever size handling is needed for StackLayoutPanel. I haven't explored that avenue, but the best place to start would be to look at the code for GWT's built-in LayoutPanels and see what they're doing.
On Oct 5, 10:33 am, Chris Boldon <cbol...@gmail.com> wrote: > I'm creating an application with a view based upon the > DockLayoutPanel. > > I initialize a DockLayoutPanel and add SimplePanels to the north, > south, west, and center docks so I can pass them to the Presenters. > > The presenter then adds a custom widget to the to the SimplePanel. The > custom widget contains a StackLayoutPanel (think left stackpanel > navigation like gmail). The issue is the stack isn't displaying > correctly, I'm only seeing the first stack in the panel. > > If I add the custom widget directly to the DockLayoutPanel without > first adding a SimplePanel, it works fine. But this would mess up my > MVP coupling. > > Any help is appreciated. -- 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-tool...@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.