This is some very simple code that I'm using to try showing a VerticalSplitPanel, but the widgets I add don't show. The divider thing of VerticalSplitPanels does show however the widgets I add don't.
Code:
public class MyView extends Composite
{
private VerticalSplitPanel mainPanel=new VerticalSplitPanel();
public CountryFilterView()
{
mainPanel.setSize("100%", "100%");
mainPanel.setSplitPosition("50%");
// Add some content
String randomText = "This is some text to show how the contents on either "
+ "side of the splitter flow. "
+ "This is some text to show how the contents on either "
+ "side of the splitter flow. "
+ "This is some text to show how the contents on either "
+ "side of the splitter flow. ";
mainPanel.setTopWidget(new HTML(randomText));
mainPanel.setBottomWidget(new HTML(randomText));
initWidget(mainPanel);
}
}
Am I doing something wrong, or is VerticalPanel just very annoyingly buggy?