I've got a problem with the autoresizing of portals in my GWT application. Basically, I want to implement the portal like here. So if I change the window size, I want that my portlets also resize automatically to fit the window again. I guess in the provided example you are using a ViewPort. However, I have to add a menu additionally, so I use a LayoutContainer to put my portal in:
So how can I implement the auto-resize behaviour for my portal? Is there also a way of setting the height of the layout container to the client window height? I haven't found a solution therefore yet.
portal = new Portal(PORTLET_SIZE);
ContentPanel menuLayout = new ContentPanel();
BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 150);
BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
centerData.setMargins(new Margins(5, 200, 5, 200));