I would like a panel in GWT to fill the page without actually having to set the size. Is there a way to do this? Currently I have the following:
public class M
For me it does not work if I just set the width like
panel.setWidth("100%");
The panel is a VerticalPanel that it just got a randomly size that I don't know where it comes from. But what @Ben Bederson commented worked very well for me after I added the line:
panel.setWidth(Window.getClientWidth() + "px");
Just this, nothing else. Thanks