mirror of https://github.com/kivy/kivy.git
Fixed textinput padding function
This commit is contained in:
parent
079704eaa9
commit
a72da6ebf7
|
@ -2561,7 +2561,7 @@ class TextInput(Widget):
|
||||||
|
|
||||||
def _get_min_height(self):
|
def _get_min_height(self):
|
||||||
return (len(self._lines) * (self.line_height + self.line_spacing)
|
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,
|
minimum_height = AliasProperty(_get_min_height, None,
|
||||||
bind=('_lines', 'line_spacing', 'padding',
|
bind=('_lines', 'line_spacing', 'padding',
|
||||||
|
|
Loading…
Reference in New Issue