summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/window/VWindow.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/window/VWindow.java b/client/src/com/vaadin/client/ui/window/VWindow.java
index e7bfd4dbdb..056de6d018 100644
--- a/client/src/com/vaadin/client/ui/window/VWindow.java
+++ b/client/src/com/vaadin/client/ui/window/VWindow.java
@@ -432,7 +432,14 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
private void showModalityCurtain() {
DOM.setStyleAttribute(getModalityCurtain(), "zIndex",
"" + (windowOrder.indexOf(this) + Z_INDEX));
- getOverlayContainer().appendChild(getModalityCurtain());
+
+ if (isShowing()) {
+ getOverlayContainer().insertBefore(getModalityCurtain(),
+ getElement());
+ } else {
+ getOverlayContainer().appendChild(getModalityCurtain());
+ }
+
}
private void hideModalityCurtain() {