Thursday, September 2, 2010

Re: TabLayoutPanel expand to fit content?

That code should be:

<RootLayoutPanel>
<g:HTMLPanel>
<h1>Title</h1>
<Widget>
<g:TabLayoutPanel ...>
...
<AnotherWidget>
<g:TabLayoutPanel ...>
...
</g:TabLayoutPanel>
</AnotherWidget>
</g:TabLayoutPanel>
</Widget>
</g:HTMLPanel>
</RootLayoutPanel>

On Sep 2, 12:30 pm, Falcon <msu.fal...@gmail.com> wrote:
> Perhaps I should be more specific.
>
> My problem is that I have multiple TabLayoutPanels in nested widgets.
> It appears that if you have a single TabLayoutPanel attached to
> RootLayoutPanel, then the tab's content area will fill the space
> needed to show the content. However, my structure is like the
> following:
>
> <RootLayoutPanel>
> <g:HTMLPanel>
>   <h1>Title</h1>
>   <Widget>
>     <g:TabLayoutPanel ...>
>       ...
>       <AnotherWidget>
>         <g:TabLayoutPanel ...>
>           ...
>         </g:TabLayoutPanel>
>       </AnotherWidget>
>   </Widget>
> </g:HTMLPanel>
> </RootLayoutPanel>
>
> I've been playing with DockLayoutPanels, LayoutPanels, etc. and the
> only thing that will show up are the tabs on the first TabLayoutPanel;
> the content won't show up without setting a height, and the height
> needs to be determined by the content instead.
>
> On Sep 2, 8:42 am, Falcon <msu.fal...@gmail.com> wrote:
>
> > I'm pretty new to the GWT layout system. Since I'm using standards
> > mode I really should use TabLayoutPanel instead of TabPanel. However,
> > I need the content area of each tab to fill all of the vertical and
> > horizontal space of its parent. How do I accomplish that?
>
> > Thanks!

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

No comments:

Post a Comment