Hi Eric-

I'm not seeing why a DockPanel or a VerticalPanel won't do what you
ask.  If you don't set a fixed size for the panel's cells it should
readjust whenever the content in those cells change.

It sounds like you want the "center" panel to take up the remaining
space of the window?  If that's the case it can be done, but generally
heights are tricky to specify in browsers.

Good luck.

On Apr 14, 3:13 pm, Eric Andresen <[email protected]> wrote:
> Does anyone know if it is possible to create a layout panel that behaves
> like a dock layout panel, but allows the outer panels to size to their
> "natural" sizes?
>
> What I'm trying to accomplish is a panel with a north and a center.  I want
> the North panel to size to the natural height of its contents, and the
> center to take up the remaining space.  The top panel can change in size,
> and I would like the bottom panel to automatically resize when that happens.
>
> Is there a panel that can do something like "Given two widgets, lay the
> first one out, and then give all remaining space to the second" ?  Kind of
> an auto-adjusting SplitLayoutPanel.
>
> My other thought was to use a standard DockLayoutPanel or LayoutPanel, but
> somehow attach a listener to the scrollHeight property of the north's
> FlowPanel that triggers a resize of the north layer.  
> Does anyone know if there is a way to register for an event that a
> FlowPanel's content's height has changed?
>
> Thanks,
> Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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