diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-16 16:23:38 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-21 14:41:33 +0300 |
commit | 46eb4e2b361e8d0ba877f7f81b845d5aef8c6ac4 (patch) | |
tree | 042d1df4fb8fe433ced2db7cb81b397a78a38390 | |
parent | 9d2e6e651624ade0fa7bb66d74d333a578344c6d (diff) | |
download | vaadin-framework-46eb4e2b361e8d0ba877f7f81b845d5aef8c6ac4.tar.gz vaadin-framework-46eb4e2b361e8d0ba877f7f81b845d5aef8c6ac4.zip |
Fix IE8 window shadows with undefined height (#18487)
Change-Id: I48717be814a6f150bf39dd2d725b753277927865
-rw-r--r-- | client/src/com/vaadin/client/ui/VOverlay.java | 14 |
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; } |