Caught it: the height of the TabLayoutPanel must be explicitly set,
either programmatically or via a {style.*} setting in the ui.xml, or
else the content in the tabs cannot be seen.

So V/H panels survive the day.

My apologies for the traffic.

sfm


On Thu, Dec 3, 2009 at 5:44 PM, Stuart Moffatt <[email protected]> wrote:
> ..ah, let me restate that.
>
>
> This ui.xml makes the tab panel layout in the center of the dock panel
> disappear:
>
>  <g:DockLayoutPanel unit='EM'>
>        <g:north size='5'>
>          <g:HTML><div>north</div></g:HTML>
>        </g:north>
>                <g:east size='2'>
>          <g:HTML><div>east</div></g:HTML>
>        </g:east>
>                <g:south size='2'>
>          <g:HTML><div>south</div></g:HTML>
>        </g:south>
>                <g:west size='12'>
>          <g:HTML><div>west</div></g:HTML>
>        </g:west>
>                <g:center size='2'>
>                        <g:HorizontalPanel>
>                          <g:TabLayoutPanel ui:field="tabLayoutPanel" 
> barHeight="28">
>                                <g:tab><g:header>This</g:header>
>                                        <g:HTML>
>                                                Lorem ipsum dolor sit amet, 
> consectetur adipiscing elit.
>                                        </g:HTML>
>                                </g:tab>
>                                <g:tab><g:header>That</g:header>
>                                        <g:HTML>
>                                                In consequat, odio non 
> tincidunt ornare, metus diam cursus odio,
> eget venenatis nulla sapien non massa.
>                                        </g:HTML>
>                                </g:tab>
>                                <g:tab><g:header>The 
> Other</g:header><g:HTML>the other</g:HTML></g:tab>
>                          </g:TabLayoutPanel>
>                        </g:HorizontalPanel>
>        </g:center>
>  </g:DockLayoutPanel>
>
> The same goes for VerticalPanel.
>
> But, if I switch to a FlowPanel wrapping the TabLayoutPanel, the tabs
> appear but the content under the tabs does not.
>
> sfm
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to