瀏覽代碼

Fix IE8 window shadows with undefined height (#18487)

Change-Id: Ia6b937749c318e9048c2dd34f3f892b44f384d25
tags/7.6.0.alpha4
Teemu Suo-Anttila 8 年之前
父節點
當前提交
debb65e46c
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13
    1
      client/src/com/vaadin/client/ui/VOverlay.java

+ 13
- 1
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;
}

Loading…
取消
儲存