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);
}
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;