]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged from 6.1: Disallow positioning window with a negative "top" value, fixes ...
authorMarc Englund <marc.englund@itmill.com>
Wed, 14 Oct 2009 13:56:53 +0000 (13:56 +0000)
committerMarc Englund <marc.englund@itmill.com>
Wed, 14 Oct 2009 13:56:53 +0000 (13:56 +0000)
svn changeset:9202/svn branch:6.2

src/com/vaadin/terminal/gwt/client/ui/VWindow.java

index 4957ce2b2dfecfea38b781a280d8a41b2d5c28b3..90d31698ed56c75bd939a78fd8e85f8334acb68e 100644 (file)
@@ -628,6 +628,9 @@ public class VWindow extends VOverlay implements Container, ScrollListener {
 
     @Override
     public void setPopupPosition(int left, int top) {
+        if (top < 0) {
+            top = 0;
+        }
         super.setPopupPosition(left, top);
         if (left != uidlPositionX && client != null) {
             client.updateVariable(id, "positionx", left, false);