Somebody can have a look pls, driving me nuts.
Thinking the HTMLPanel might be the bad guy, I replaced this with a layoutpanel as well :
<ui:style>
@def coloricons #333333;
@def hovercolor orange;
body,html {
padding: 0;
border: 0;
margin: 0;
font-family: 'Droid Sans', sans-serif;
color: coloricons;
}
.layoutpanel {
border: 1px solid red;
min-widht: 400px;
}
.tablayoutpanel {
border: 1px solid green;
}
</ui:style>
<g:LayoutPanel ui:field="container" height="300px"
addStyleNames="{style.layoutpanel}">
<g:layer>
<g:TabLayoutPanel barUnit='PX' barHeight='30'
height="250px" addStyleNames="{style.tablayoutpanel}">
<g:tab height="100%" width="100%">
<g:header>actions</g:header>
<g:LayoutPanel>
<g:layer>
<g:Label>test</g:Label>
</g:layer>
</g:LayoutPanel>
</g:tab>
<g:tab height="100%" width="100%">
<g:header>history</g:header>
<c:DataGrid ui:field='table' height="100%" />
</g:tab>
</g:TabLayoutPanel>
</g:layer>
</g:LayoutPanel>
Still, the DataGrid remains empty while switching both tabs and the DataGrid is showing OK :
<g:LayoutPanel ui:field="container" height="300px"
addStyleNames="{style.layoutpanel}">
<g:layer>
<g:TabLayoutPanel barUnit='PX' barHeight='30'
height="250px" addStyleNames="{style.tablayoutpanel}">
<g:tab height="100%" width="100%">
<g:header>history</g:header>
<c:DataGrid ui:field='table' height="100%" />
</g:tab>
<g:tab height="100%" width="100%">
<g:header>actions</g:header>
<g:LayoutPanel>
<g:layer>
<g:Label>test</g:Label>
</g:layer>
</g:LayoutPanel>
</g:tab>