summaryrefslogtreecommitdiffstats
path: root/client/src/com
diff options
context:
space:
mode:
authorMarc Englund <marc@vaadin.com>2012-10-31 11:51:22 +0200
committerMarc Englund <marc@vaadin.com>2012-10-31 11:51:22 +0200
commit8cf6a76827818f7fa32a3d0981f45d10cc0db2db (patch)
treedf0aa5c83a0a0ada15f9ebe7b1c0881cf72ede0b /client/src/com
parent720ee8097614a9485d74dd0cc462d0c2d0297cec (diff)
downloadvaadin-framework-7.0.0.beta7.tar.gz
vaadin-framework-7.0.0.beta7.zip
Fix for modality problem introduced by overlay container #92207.0.0.beta7
Change-Id: If7056c992dc9096870419d8db18751b2ea80eabf
Diffstat (limited to 'client/src/com')
-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() {