setText() for MaskEditTextView

This commit is contained in:
Bryan Ashby 2015-12-24 11:53:34 -07:00
parent 67b0d1a683
commit a2011ef39c
1 changed files with 8 additions and 0 deletions

View File

@ -103,6 +103,14 @@ MaskEditTextView.maskPatternCharacterRegEx = {
'&' : /[\w\d\s]/, // Any "printable" 32-126, 128-255
};
MaskEditTextView.prototype.setText = function(text) {
MaskEditTextView.super_.prototype.setText.call(this, text);
if(this.patternArray) { // :TODO: This is a hack - see TextView ctor note about setText()
this.patternArrayPos = this.patternArray.length;
}
};
MaskEditTextView.prototype.setMaskPattern = function(pattern) {
this.dimens.width = pattern.length;