Merge pull request #2369 from inclement/textinput_padding

Fixed textinput height calculation based on padding
This commit is contained in:
Gabriel Pettier 2014-07-28 14:28:35 +02:00
commit 8b6e71142b
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# -*- encoding: utf8 -*-
# -*- encoding: utf-8 -*-
'''
Text Input
==========
@ -2561,7 +2561,7 @@ class TextInput(Widget):
def _get_min_height(self):
return (len(self._lines) * (self.line_height + self.line_spacing)
+ self.padding[0] + self.padding[2])
+ self.padding[1] + self.padding[3])
minimum_height = AliasProperty(_get_min_height, None,
bind=('_lines', 'line_spacing', 'padding',