]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for overlays in opera with no shadow (#6219, #8399)
authorArtur Signell <artur.signell@itmill.com>
Fri, 3 Aug 2012 07:50:42 +0000 (07:50 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 3 Aug 2012 07:50:42 +0000 (07:50 +0000)
svn changeset:24048/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VOverlay.java

index 3d11c7b5bb5912cfb9ac0b8f9b0606451dbf7918..6f4c5e70bb847fab8e1f6a6ae1e697d08a29c4b8 100644 (file)
@@ -442,7 +442,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
         // 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<PopupPanel> {
                 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()