i am trying to get an tab layout which gets 100% of screensize but all
set size with percentage is beeing ignored. here is my code:
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
String text1 = "Lorem ipsum dolor sit amet...";
String text2 = "Sed egestas, arcu nec accumsan...";
String text3 = "Proin tristique, elit at blandit...";
TabLayoutPanel panel = new TabLayoutPanel(1, Unit.CM);
panel.setHeight("100%");
panel.setWidth("100%");
LayoutPanel layoutPanel = new LayoutPanel();
layoutPanel.add(new Label(text1));
panel.add(layoutPanel, "New Widget", false);
LayoutPanel layoutPanel_1 = new LayoutPanel();
layoutPanel_1.add(new Label(text2));
panel.add(layoutPanel_1, "New Widget", false);
LayoutPanel layoutPanel_2 = new LayoutPanel();
layoutPanel_2.add(new Label(text3));
panel.add(layoutPanel_2, "New Widget", false);
panel.selectTab(0);
rootPanel.add(panel);
}
So how to get an tab layout with all tabs getting 100%?
Thx in advance
--
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.