You need an unbroken chain of ProvidesResize up to the RootLayoutPanel.
 DockLayoutPanel is a good choice for app level layout, with a
SplitLayoutPanel directly beneath it.

The reason the button appears huge is that LayoutPanels automatically size
their content to fit the available area.  You can get around this by putting
the Button in a SimplePanel/FlowPanel and adding that to the
SplitLayoutPanel:
<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder
 xmlns:ui='urn:ui:com.google.gwt.uibinder'
 xmlns:g='urn:import:com.google.gwt.user.client.ui'
>
   <g:StackLayoutPanel unit="EX">
     <g:stack>
       <g:customHeader size="4">
         <g:Label>Stack One</g:Label>
       </g:customHeader>
*      /* Will fill entire available area */
       <g:Button>Button X</g:Button>
*     </g:stack>
     <g:stack>
       <g:customHeader size="4">
         <g:Label>Stack Two</g:Label>
       </g:customHeader>
*       <g:FlowPanel>*
*         /* Will not fill available space */
         <g:Button>Button Y</g:Button>*
*       </g:FlowPanel>
*     </g:stack>
   </g:StackLayoutPanel>
</ui:UiBinder>

Thanks,
John LaBanca
[email protected]


On Tue, Dec 14, 2010 at 9:29 PM, Y2i <[email protected]> wrote:

> > So I can't use SLP unless it's the root panel? I just want it as a
> > part of the UI, not have it take over the entire page.
>
> You can, just make sure that the chain of components implementing
> ProvidesResize/RequiresResize from RootLayoutPanel to your SLP is
> unbroken.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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