From e3a07d6cb576e10dc79b68aff347ddab5cafe558 Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Sat, 15 Mar 2014 15:49:40 +0200 Subject: Support for middle left/right positions in Notification (#12931). Change-Id: Iac00191ace5d55f8b054f8b66d1802a788d368c2 --- client/src/com/vaadin/client/ui/VNotification.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client') diff --git a/client/src/com/vaadin/client/ui/VNotification.java b/client/src/com/vaadin/client/ui/VNotification.java index 02411e20e3..3aa3fa847d 100644 --- a/client/src/com/vaadin/client/ui/VNotification.java +++ b/client/src/com/vaadin/client/ui/VNotification.java @@ -303,6 +303,15 @@ public class VNotification extends VOverlay { DOM.setStyleAttribute(el, "top", "0px"); DOM.setStyleAttribute(el, "right", "0px"); break; + case MIDDLE_LEFT: + center(); + DOM.setStyleAttribute(el, "left", "0px"); + break; + case MIDDLE_RIGHT: + center(); + DOM.setStyleAttribute(el, "left", ""); + DOM.setStyleAttribute(el, "right", "0px"); + break; case BOTTOM_RIGHT: DOM.setStyleAttribute(el, "position", "absolute"); DOM.setStyleAttribute(el, "bottom", "0px"); -- cgit v1.2.3