summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-16 16:23:38 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-16 16:23:38 +0300
commitdebb65e46c9b1f8628878ad2232502bf58f260de (patch)
tree59a12c8f30bf50e2e4f71413f02f7138742e281b /client/src
parent0a7a9e87ef95511c0e54d128be573c83124898e7 (diff)
downloadvaadin-framework-debb65e46c9b1f8628878ad2232502bf58f260de.tar.gz
vaadin-framework-debb65e46c9b1f8628878ad2232502bf58f260de.zip
Fix IE8 window shadows with undefined height (#18487)
Change-Id: Ia6b937749c318e9048c2dd34f3f892b44f384d25
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VOverlay.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VOverlay.java b/client/src/com/vaadin/client/ui/VOverlay.java
index 3649afc74f..e823e8ee80 100644
--- a/client/src/com/vaadin/client/ui/VOverlay.java
+++ b/client/src/com/vaadin/client/ui/VOverlay.java
@@ -22,6 +22,8 @@ import java.util.logging.Logger;
import com.google.gwt.animation.client.Animation;
import com.google.gwt.aria.client.Roles;
import com.google.gwt.core.client.JavaScriptObject;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.IFrameElement;
@@ -471,7 +473,17 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
if (isAnimationEnabled()) {
new ResizeAnimation().run(POPUP_PANEL_ANIMATION_DURATION);
} else {
- positionOrSizeUpdated(1.0);
+ if (BrowserInfo.get().isIE8()) {
+ Scheduler.get().scheduleFinally(new ScheduledCommand() {
+
+ @Override
+ public void execute() {
+ positionOrSizeUpdated(1.0);
+ }
+ });
+ } else {
+ positionOrSizeUpdated(1.0);
+ }
}
current = null;
}