aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VWindow.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java
index d6dd9c7b1d..6a908aaa29 100644
--- a/client/src/com/vaadin/client/ui/VWindow.java
+++ b/client/src/com/vaadin/client/ui/VWindow.java
@@ -679,9 +679,14 @@ public class VWindow extends VWindowOverlay implements
}
super.hide();
+ int curIndex = windowOrder.indexOf(this);
// Remove window from windowOrder to avoid references being left
// hanging.
- windowOrder.remove(this);
+ windowOrder.remove(curIndex);
+ // Update the z-indices of any remaining windows
+ while (curIndex < windowOrder.size()) {
+ windowOrder.get(curIndex).setWindowOrder(curIndex++);
+ }
}
private void fixIE8FocusCaptureIssue() {