diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-29 12:06:48 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-29 12:06:48 +0300 |
commit | 6af7ba3ba81794dbe63d94c8ea2a4915fb0b2726 (patch) | |
tree | e3cc453315de5d2f2f87a2f01f6a4555a0abc9e7 | |
parent | 17a60afd6eaab10a24de5cde3bffaeaf23ba3cd2 (diff) | |
download | vaadin-framework-6af7ba3ba81794dbe63d94c8ea2a4915fb0b2726.tar.gz vaadin-framework-6af7ba3ba81794dbe63d94c8ea2a4915fb0b2726.zip |
Stack windows when no position has been given (#11729)
Change-Id: I5841de4554a35af158764551f022bda1eaddb3c0
-rw-r--r-- | client/src/com/vaadin/client/ui/window/WindowConnector.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/window/WindowConnector.java b/client/src/com/vaadin/client/ui/window/WindowConnector.java index f1ea99f3f5..90311e30ad 100644 --- a/client/src/com/vaadin/client/ui/window/WindowConnector.java +++ b/client/src/com/vaadin/client/ui/window/WindowConnector.java @@ -333,7 +333,11 @@ public class WindowConnector extends AbstractSingleComponentContainerConnector WindowState state = getState(); if (state.windowMode == WindowMode.NORMAL) { // if centered, position handled in postLayout() - if (!state.centered) { + if (!state.centered + && (state.positionX >= 0 || state.positionY >= 0)) { + // If both positions are negative, then + // setWindowOrderAndPosition has already taken care of + // positioning the window so it stacks with other windows window.setPopupPosition(state.positionX, state.positionY); } } else if (state.windowMode == WindowMode.MAXIMIZED) { |