]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes datefield bug with width set
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 23 Apr 2008 12:59:16 +0000 (12:59 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 23 Apr 2008 12:59:16 +0000 (12:59 +0000)
svn changeset:4207/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ITextualDate.java

index 02a401833ddbc2e2037f2b6d1e6db9d2f1c4aa6e..c4eade28d19d3d4a83d9e8cdfe66a523b511fdd3 100644 (file)
@@ -255,7 +255,7 @@ public class ITextualDate extends IDateField implements Paintable,
                 needLayout = false;\r
             }\r
         } else {\r
-            if (width != null && !"".equals(width)) {\r
+            if ("".equals(newWidth) && width != null && !"".equals(width)) {\r
                 super.setWidth("");\r
                 needLayout = true;\r
                 iLayout();\r