View Full Version : [CLOSED] Full Screen BorderLayoutContainer

13 Jul 2011, 7:21 AM
I can't figure out how to force the BorderLayoutContainer to be full screen/consume all its parents space, like: http://www.sencha.com/examples-dev/#ExamplePlace:borderlayout

Instead of: con.setPixelSize(800, 400);
I was looking for somthing like: con.setSize("100%", "100%");

(setAutoHeight and setAutoWidth aren't as well no solution)

13 Jul 2011, 7:22 AM
You have to use a Viewport.

Viewport v = new Viewport();
v.add(new BorderLayoutContainer());

13 Jul 2011, 8:10 AM
Vielen Dank! =D>

14 Jul 2011, 9:16 AM
Another question: Where can I find out how and which tags need to be used and structured for the UiBinder declaration, based on existing java code? Current example: I just can't find out how to translate the following TabPanel code:

TabPanel tabPanel = new TabPanel();

HTML shortText = new HTML("Content 1");
tabPanel.add(shortText, "Tab 1");

HTML longText = new HTML("Content 2");
tabPanel.add(longText, "Tab 2");

panel.add(iconTab, config);

... a general answer, which can also be aplied to other Components, whould be great!!