Popup window position problem

Hi

There’s something about modal popup windows that has been annoyed me for a while. I’d say a visual glitch.

After the moment of adding child window (in my case modal popup) to main window and making it visible for the first time, the window appears in kind of funny but not really desirable fashion.

  1. window first materializes in top left corner
  2. then finishes initialization of it’s content
  3. and moves to the center of screen where it stays

The jump from initial (unwanted) position to center of screen is disturbing.

The problem is more pronounced on bigger windows having more complex content (thus AJAX lazy-loaded?). Small windows with a textfield or two and some static texts are rather fine.

Plus the issue can be percepted on certain browsers only:
Not OK:

  • FF 3.x
  • Opera 10.x

OK:

  • FF 4.x
  • IE 8.x
  • Chrome 5.x

Popup window is being added to main frame using:
this.getApplication().getMainWindow().addWindow(myWindow);
Popup window is simple extension of Window with constructor override, where: width, height and modality properties are set.

Question: can something be done on my end to avoid this visual glitch completely? Tricks? I have tried different things but none of theme solved the problem really.

Cheers,
Tomas

EDIT: applies to all versions of Vaadin, up to 6.3.3 and even 6.4 nightlies.

Sound like a bug in the sub window implementation or a browser problem. The correct place to fix or work around it is probably in VWindow, which is the client side implementation of a sub window.

Please:

  1. Create a ticket for it at http://dev.vaadin.com/
  2. Add a test case to the ticket
  3. If you have a look at VWindow and find the reason or even a solution, add a comment to the ticket

Thanks!

Ok, I will create a ticket.

Reported via tracker as #5124.