TextBase: set maxlength to the lowest allowed value
Merge pull request #1346 from xificurk/textbase-maxlength-fix

TextBase: set maxlength to the lowest allowed value