I wan't to create a simple page using DockLayoutPanel, and I don't know why the main child in that panel doesn't get centered could anybody help?
public class Spr implements EntryPoint {
public void onModuleLoad() {
DockLayoutPanel panel = new DockLayoutPanel(Unit.EM);
RootLayoutPanel.get().add(panel);
panel.add(new HTML("center"));
}
}
This just displays "center" in the top-left corner, while I expect it to display it in the middle of the page.
Thanks in advance.