diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-03-15 15:49:40 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-08 07:45:08 +0000 |
commit | e3a07d6cb576e10dc79b68aff347ddab5cafe558 (patch) | |
tree | 78aafc601b31aa467796616f8010b55968ac857b /client | |
parent | f32e3535c6ef73bca33f274e9906f57aa178d22a (diff) | |
download | vaadin-framework-e3a07d6cb576e10dc79b68aff347ddab5cafe558.tar.gz vaadin-framework-e3a07d6cb576e10dc79b68aff347ddab5cafe558.zip |
Support for middle left/right positions in Notification (#12931).
Change-Id: Iac00191ace5d55f8b054f8b66d1802a788d368c2
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VNotification.java | 9 |
1 files changed, 9 insertions, 0 deletions
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"); |