@jgw, rjrjr,
> You can use all kinds of inline-block
> hackery (since its cross-browser support is poor), but even that breaks down
> under various circumstances.
Which is what I was trying to avoid by going completely table-less.
> VerticalPanel, on the other hand, is less useful (I find, anyway). You can
> almost always just stack up block-level elements in a div (in other words,
> just shove most any widget in a FlowPanel) and get the effect of a
> VerticalPanel without all the table stuff.
However, I hit a dead-end with nesting TabLayoutPanel in a FlowPanel.
The dummy latin text in the following ui.xml never shows up (the tabs
are there, and clickable, but none of their child content displays):
==== NestedFlowTabLayoutPanel.ui.xml ====
<ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
>
<ui:style src='NestedTabLayoutPanel.css'/>
<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:FlowPanel>
<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.
</g:HTML>
</g:tab>
<g:tab><g:header>The Other</g:header>
<g:HTML>the other</g:HTML></g:tab>
</g:TabLayoutPanel>
</g:FlowPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>
On the other hand, nesting a TabLayoutPanel in a LayoutPanel with
layers seems to work better, except for the aforementioned rendering
problem of layers sitting right on top of layers.
I think I changed my question: Are we seeing a bug in TabLayoutPanel
that makes it render improperly if nested in a table-based widget like
VerticalPanel or HorizontalPanel?
Stuart
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors