SmartGWT 2.2, GWT 2.1, FireFox 3.6.12.
I'm trying to create the simplest possible login form, and I get the login form elements occluding the title bar of the window I'm trying to put them in (see attachment). Why? My code looks like this:
Cheers, Robert.
I'm trying to create the simplest possible login form, and I get the login form elements occluding the title bar of the window I'm trying to put them in (see attachment). Why? My code looks like this:
Code:
public class MyEntryPoint implements EntryPoint { public void onModuleLoad() { DynamicForm loginForm = new DynamicForm(); loginForm.setWidth100(); loginForm.setHeight100(); TextItem usernameTextItem = new TextItem(); usernameTextItem.setTitle("Username"); TextItem passwordTextItem = new TextItem(); passwordTextItem.setTitle("Password"); ButtonItem buttonItem = new ButtonItem(); buttonItem.setTitle("Log in"); buttonItem.setAlign(Alignment.RIGHT); loginForm.setFields(usernameTextItem, passwordTextItem, buttonItem); Window window = new Window(); window.setTitle("Log in"); window.setSize("300px", "120px"); window.addChild(loginForm); window.centerInPage(); RootLayoutPanel.get().add(window); } }
Comment