From: Marc Englund Date: Wed, 11 Jun 2008 11:54:43 +0000 (+0000) Subject: Opera 9.27 showed tray-notification over whole window - fixed. Might affect #1802. X-Git-Tag: 6.7.0.beta1~4615 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=94a96bec1d29811f05d65c7b300ea98ef7cde81e;p=vaadin-framework.git Opera 9.27 showed tray-notification over whole window - fixed. Might affect #1802. svn changeset:4858/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/Notification.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/Notification.java index c66f8a635c..42ce1ade1f 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/Notification.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/Notification.java @@ -142,10 +142,10 @@ public class Notification extends ToolkitOverlay { public void setPosition(int position) { final Element el = getElement(); - DOM.setStyleAttribute(el, "top", null); - DOM.setStyleAttribute(el, "left", null); - DOM.setStyleAttribute(el, "bottom", null); - DOM.setStyleAttribute(el, "right", null); + DOM.setStyleAttribute(el, "top", ""); + DOM.setStyleAttribute(el, "left", ""); + DOM.setStyleAttribute(el, "bottom", ""); + DOM.setStyleAttribute(el, "right", ""); switch (position) { case TOP_LEFT: DOM.setStyleAttribute(el, "top", "0px"); @@ -170,7 +170,7 @@ public class Notification extends ToolkitOverlay { break; case CENTERED_BOTTOM: center(); - DOM.setStyleAttribute(el, "top", null); + DOM.setStyleAttribute(el, "top", ""); DOM.setStyleAttribute(el, "bottom", "0px"); break; default: