I'd like to create a TabPanel that occupies the entire browser client area, and inside that put a FlexTable that scrolls if necessary. However, I'm having trouble acheiving this. I've tried:
public void onModuleLoad() {
TabPanel test = new TabPanel();
test.setSize("100%", "100%");
FlexTable flex = new FlexTable();
for (int i = 0; i < 100; i++)
flex.setText(i, 0, "test " + i);
test.add(flex, "tab");
flex.setStyleName("overflow-auto");
test.selectTab(0);
RootPanel.get().add(test);
}
Where overflow-auto is defined as:
.overflow-auto {
overflow: auto;
}
Although the tab panel properly occupies 100% width, it ends up scaling its height to the interior FlexTable, rather than forcing scrollbars upon it. How can I make the client area of the tabpanel be independent of the size of its child here?