GWT UIBinder Tab Bar

I want to put some anchor inside the body of a tab with two tabs. But my anchors are not visible. The code is as follows

<g:TabLayoutPanel ui:field="lhsTabPanel" barUnit="PX" barHeight="60"> <g:tab> <g:header>Analysis</g:header> <g:FlowPanel> <g:Anchor ui:field='personalInformation'>Personal Information</g:Anchor> </g:FlowPanel> </g:tab> <g:tab> <g:header>Comparison</g:header> <g:FlowPanel ui:field="comparisonContent"/> </g:tab> </g:TabLayoutPanel> 

Personal Information Tab Not Displaying

+4
source share
1 answer

TabLayoutPanels must be added to other widgets that implement ProvidesResize. For example, if you add this TabLayoutPanel to the RootPanel instead of the RootLayoutPanel, you will not be able to see the TabLayoutPanel because the RootPanel does not implement ProvidesResize.

You cannot see the contents of the tabs because TabLayoutPanel does not know how important this is. Try adding it to some descendant of the LayoutPanel and setting its size explicitly using setWidgetLeftRight and its related functions.

For more information, please http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#LayoutPanels .

+10
source

All Articles