]> source.dussan.org Git - vaadin-framework.git/commitdiff
The TextField needs to be repainted if it has a formatter; fixes #1824
authorMarc Englund <marc.englund@itmill.com>
Mon, 23 Jun 2008 06:43:04 +0000 (06:43 +0000)
committerMarc Englund <marc.englund@itmill.com>
Mon, 23 Jun 2008 06:43:04 +0000 (06:43 +0000)
svn changeset:4937/svn branch:trunk

src/com/itmill/toolkit/ui/TextField.java

index 34223c0853e1b51daf9b68afba3340ebd193015b..e616b1949a650493dfb6cd09bbfe2b10fed54edd 100644 (file)
@@ -232,8 +232,9 @@ public class TextField extends AbstractField {
                 boolean wasModified = isModified();
                 setValue(newValue, true);
 
-                // If the modified status changes, repaint is needed after all
-                if (wasModified != isModified()) {
+                // If the modified status changes, or if we have a formatter,
+                // repaint is needed after all.
+                if (format != null || wasModified != isModified()) {
                     requestRepaint();
                 }
             }