PDA

View Full Version : Beta4 - modal DialogBox w/Field objects



abickford
3 Jun 2008, 1:37 PM
I seem to be having 2 issues related to the dialog box in hosted mode (IE 7):

1) When the dialog is first opened, it doesn't appear to be 'modal'. If you move the dialog or resize the window, the background becomes grayed out.

2) Give the TextField focus and then remove it generating a validation error. When you get the tooltip of the error, the 'modal' style goes away in the background. Move off the error icon and the modal style comes back.

In Firefox, it gets a bit more interesting. Moving the dialog shoots it off the screen, outside of the 'modal' area.

I think these are bugs, but if I'm using the API incorrectly, someone let me know :)

public void onModuleLoad() {
//just to demonstrate the area the 'modal' mask actually covers
RootPanel.get().add(new Button("Fred"));

Dialog d = new Dialog();
d.setHeading("MyDialog");
d.setModal(true);

FormLayout layout = new FormLayout();
layout.setLabelWidth(90);
layout.setDefaultWidth(155);
d.setLayout(layout);

TextField<String> tf = new TextField<String>();
tf.setAllowBlank(false);
tf.setFieldLabel("MyLabel");

d.add(tf);

d.show();
d.center();
}

darrellmeyer
5 Jun 2008, 12:11 PM
I am not seeing any issues. Can you make sure you have the latest beta 4 download (updated today) and test again.


In Firefox, it gets a bit more interesting. Moving the dialog shoots it off the screen, outside of the 'modal' area.

There is a issues with GWT can getting mouse position form an event. I have added a workaround for firefox which is also in the download.