]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #3147: Modal Window cannot be positioned.
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 17 Jul 2009 13:12:23 +0000 (13:12 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Fri, 17 Jul 2009 13:12:23 +0000 (13:12 +0000)
Center request now gets cleared every time the window is positioned.

svn changeset:8395/svn branch:6.0

src/com/vaadin/ui/Window.java

index a46de06635921b8f92b3de546649c77b57723a17..c35675b08fc0c1d46f752a32f0e2c60c823191ea 100644 (file)
@@ -951,6 +951,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      */
     public void setPositionX(int positionX) {
         this.positionX = positionX;
+        centerRequested = false;
         requestRepaint();
     }
 
@@ -979,6 +980,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler {
      */
     public void setPositionY(int positionY) {
         this.positionY = positionY;
+        centerRequested = false;
         requestRepaint();
     }