From 9c6f83505896145c6d84534c610720ede83993e0 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 21 Jan 2013 21:47:40 +0200 Subject: [PATCH] Removed Opera 9 workaround which is no longer needed but does not work correctly (#5310) Change-Id: I95c60b68d6fba55cd4034b4c474171d973cdf0d7 --- client/src/com/vaadin/client/ui/VNotification.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/client/src/com/vaadin/client/ui/VNotification.java b/client/src/com/vaadin/client/ui/VNotification.java index e67bde47dd..7019394e3b 100644 --- a/client/src/com/vaadin/client/ui/VNotification.java +++ b/client/src/com/vaadin/client/ui/VNotification.java @@ -215,13 +215,6 @@ public class VNotification extends VOverlay { if (opacity <= 0) { cancel(); hide(); - if (BrowserInfo.get().isOpera()) { - // tray notification on opera needs to explicitly - // define - // size, reset it - DOM.setStyleAttribute(getElement(), "width", ""); - DOM.setStyleAttribute(getElement(), "height", ""); - } } else { setOpacity(getElement(), opacity); } @@ -248,11 +241,6 @@ public class VNotification extends VOverlay { break; case BOTTOM_RIGHT: DOM.setStyleAttribute(el, "position", "absolute"); - if (BrowserInfo.get().isOpera()) { - // tray notification on opera needs explicitly defined size - DOM.setStyleAttribute(el, "width", getOffsetWidth() + "px"); - DOM.setStyleAttribute(el, "height", getOffsetHeight() + "px"); - } DOM.setStyleAttribute(el, "bottom", "0px"); DOM.setStyleAttribute(el, "right", "0px"); break; -- 2.39.5