Procházet zdrojové kódy

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

svn changeset:4881/svn branch:trunk
tags/6.7.0.beta1
Joonas Lehtinen před 16 roky
rodič
revize
9a0712bbdb
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6
    0
      src/com/itmill/toolkit/ui/TextField.java

+ 6
- 0
src/com/itmill/toolkit/ui/TextField.java Zobrazit soubor

@@ -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();
}
}
}


Načítá se…
Zrušit
Uložit