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.
- window first materializes in top left corner
- then finishes initialization of it’s content
- 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.