summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorThomas <thomas@vaadin.com>2013-11-05 15:21:06 +0200
committerVaadin Code Review <review@vaadin.com>2013-11-06 11:12:06 +0000
commitfefedeab68461ebc04fd45f91a35835fc9026a56 (patch)
treef4d3b8a2d60b7ed0f1c4e81499abba584cef3d94 /server
parente0e00befc848c242f986ba5cd993ae8610a7fa83 (diff)
downloadvaadin-framework-fefedeab68461ebc04fd45f91a35835fc9026a56.tar.gz
vaadin-framework-fefedeab68461ebc04fd45f91a35835fc9026a56.zip
Send window position data back to server after drag (#12885)
Change-Id: I9ca766b0e06390c7ab90f9cbd4996b83032789db
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Window.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Window.java b/server/src/com/vaadin/ui/Window.java
index 5820161c1c..c173b401b9 100644
--- a/server/src/com/vaadin/ui/Window.java
+++ b/server/src/com/vaadin/ui/Window.java
@@ -77,6 +77,16 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier,
public void windowModeChanged(WindowMode newState) {
setWindowMode(newState);
}
+
+ @Override
+ public void windowMoved(int x, int y) {
+ if (x != getState(false).positionX) {
+ setPositionX(x);
+ }
+ if (y != getState(false).positionY) {
+ setPositionY(y);
+ }
+ }
};
/**