RootLayoutPanel uses absolute positioning while RootPanel does not use
absolute positioning and is either the <body> element or any other DIV
element with a given ID if you use RootPanel.get("id"). So RootLayoutPanel
fills the whole browser window by default while RootPanel.get() is only as
heigh as its content.
In your case I think you can do:
RootPanel root = RootPanel.get("id");
root.setSize("100%", "100%");
dockLayoutPanel.setSize("100%", "100%");
root.add(dockLayoutPanel);
Because you use DockLayoutPanel and you dont put it into a RootLayoutPanel
you may also need to listen for window resize events and call onResize() on
the dockLayoutPanel. Thats something that RootLayoutPanel does
automatically for all its children.
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/WykI_oAf6BIJ.
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.