From 17efb5dd9309768f077060edda6c57f88ec4f352 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 3 Aug 2012 07:50:42 +0000 Subject: [PATCH] Fix for overlays in opera with no shadow (#6219, #8399) svn changeset:24048/svn branch:6.8 --- src/com/vaadin/terminal/gwt/client/ui/VOverlay.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5