Merge pull request #4453 from Alan-FGR/patch-2

Update textinput.py
This commit is contained in:
Akshay Arora 2016-07-31 22:37:27 +05:30 committed by GitHub
commit ee7fa223f7
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ class TextInput(FocusBehavior, Widget):
wrap = (self._get_text_width(
new_text,
self.tab_width,
self._label_cached) > self.width)
self._label_cached) > (self.width - self.padding[0] - self.padding[2]))
if len_str > 1 or substring == u'\n' or wrap:
# Avoid refreshing text on every keystroke.
# Allows for faster typing of text when the amount of text in