Results 1 to 2 of 2

Thread: Beta4 - modal DialogBox w/Field objects

  1. #1

    Default Beta4 - modal DialogBox w/Field objects

    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();
    }

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •