Hello,
I'm trying to add a VerticalSplitPanel to a TabPanel. The widget is
added but the method setSplitPosition doesn't work anymore.... Do you
know if this behaviour is normal or if it's a bug?
Example of VerticalSplitPanel with setSplitPosition working:
public void onModuleLoad() {
HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSize("800px", "600px");
splitPanel.setLeftWidget(new Label("label 1"));
splitPanel.setRightWidget(new Label("label 2"));
splitPanel.setSplitPosition("30%");
RootPanel.get().add(splitPanel);
}
Example of VerticalSplitPanel with setSplitPosition failing:
public void onModuleLoad() {
HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSize("800px", "600px");
splitPanel.setLeftWidget(new Label("label 1"));
splitPanel.setRightWidget(new Label("label 2"));
splitPanel.setSplitPosition("30%");
VerticalPanel verticalPanel = new VerticalPanel();
verticalPanel.setSize("800px", "600px");
verticalPanel.add(splitPanel);
TabPanel tabPanel = new TabPanel();
tabPanel.setSize("800px", "600px");
tabPanel.add(verticalPanel, "split");
RootPanel.get().add(tabPanel);
}
Best Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---