Browse Source

Fixes #1806: Unexpected behavior with i-modified-class

svn changeset:4881/svn branch:trunk
tags/6.7.0.beta1
Joonas Lehtinen 16 years ago
parent
commit
9a0712bbdb
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/com/itmill/toolkit/ui/TextField.java

+ 6
- 0
src/com/itmill/toolkit/ui/TextField.java View File

@@ -229,7 +229,13 @@ public class TextField extends AbstractField {
}
if (newValue != oldValue
&& (newValue == null || !newValue.equals(oldValue))) {
boolean wasModified = isModified();
setValue(newValue, true);

// If the modified status changes, repaint is needed after all
if (wasModified != isModified()) {
requestRepaint();
}
}
}


Loading…
Cancel
Save