Hi,
I'm using GWT 2.4. Is there a way to wrap tabs in a TabLayoutPanel if
the number of tabs exceeds the visible viewing area? I thought maybe
adding a scrollbar would help, but even if there are few tabs, a
scroll bar always appears with this code, and it is a mile long.
tabsPanel = new TabLayoutPanel(BAR_HEIGHT_IN_EM, Style.Unit.EM);
...
final ScrollPanel childpanel = new ScrollPanel();
...
tabsPanel.add(childpanel, tabName);
...
// Make sure all tabs can be seen
SimplePanel tab = (SimplePanel)
tabsPanel.getTabWidget(0).getParent();
FlowPanel tabBar = (FlowPanel) tab.getParent();
LayoutPanel container = (LayoutPanel) tabBar.getParent();
Element tabBarContainerLayer =
container.getWidgetContainerElement(tabBar);
tabBarContainerLayer.getStyle().clearOverflowX();
Any help on elegantly displaying tabs so that they can all be accessed
if they aren't all necessarily initially visible? - Dave
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.