From debb65e46c9b1f8628878ad2232502bf58f260de Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 16 Jul 2015 16:23:38 +0300 Subject: Fix IE8 window shadows with undefined height (#18487) Change-Id: Ia6b937749c318e9048c2dd34f3f892b44f384d25 --- client/src/com/vaadin/client/ui/VOverlay.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'client/src') 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 { 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; } -- cgit v1.2.3