From: Artur Signell Date: Fri, 3 Aug 2012 07:50:42 +0000 (+0000) Subject: Fix for overlays in opera with no shadow (#6219, #8399) X-Git-Tag: 7.0.0.beta1~79^2~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=17efb5dd9309768f077060edda6c57f88ec4f352;p=vaadin-framework.git Fix for overlays in opera with no shadow (#6219, #8399) svn changeset:24048/svn branch:6.8 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java index 3d11c7b5bb..6f4c5e70bb 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java @@ -442,7 +442,7 @@ public class VOverlay extends PopupPanel implements CloseHandler { // Opera needs some shaking to get parts of the shadow showing // properly // (ticket #2704) - if (BrowserInfo.get().isOpera()) { + if (BrowserInfo.get().isOpera() && isShadowEnabled()) { // Clear the height of all middle elements DOM.getChild(shadow, 3).getStyle().setProperty("height", "auto"); DOM.getChild(shadow, 4).getStyle().setProperty("height", "auto"); @@ -460,7 +460,7 @@ public class VOverlay extends PopupPanel implements CloseHandler { positionAndSize); // Opera fix, part 2 (ticket #2704) - if (BrowserInfo.get().isOpera()) { + if (BrowserInfo.get().isOpera() && isShadowEnabled()) { // We'll fix the height of all the middle elements DOM.getChild(shadow, 3) .getStyle()