can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: can't get tabLayout with 100% size

2011-03-31 Thread Jens
Put your TabLayoutPanel in a RootLayoutPanel instead of a RootPanel. Then it 
should work and you do not need to set any width/height.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
thank you very much,

since hours i try this :-)

On 31 Mrz., 12:44, Jens jens.nehlme...@gmail.com wrote:
 Put your TabLayoutPanel in a RootLayoutPanel instead of a RootPanel. Then it
 should work and you do not need to set any width/height.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.