Limit field drew number,draw back of string if length is greater than limit.
Merge pull request #4801 from shenweip/patch-12

[OSK dialog] Limit field drew number,draw back of string if length is greater than limit.