public void onModuleLoad() { Viewport viewport = new Viewport(); viewport.setWidget(new ContentPanel(), new MarginData(10)); RootPanel.get().add(viewport); }The viewport is not added to the root panel automatically. Is is not necessary to call {@link #forceLayout()} after adding the viewport to theRootPanel. Layout will be called after being added to the root panel.
|
|