From a9db7f4014bbaeaacbf87daef5e4f372baab8f82 Mon Sep 17 00:00:00 2001 From: Thomas Hansen Date: Mon, 26 Nov 2012 16:09:23 -0600 Subject: [PATCH] core.text: fix line_height of last line in label (dont add extra space below label on last line) --- kivy/core/text/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivy/core/text/__init__.py b/kivy/core/text/__init__.py index c63cd5f8a..a97641374 100644 --- a/kivy/core/text/__init__.py +++ b/kivy/core/text/__init__.py @@ -331,6 +331,9 @@ class LabelBase(object): if not real: self._internal_height = sum([size[1] for size, glyphs in lines]) + ll_h = lines[-1][0][1] + lh_offset = ll_h - (ll_h / self.options['line_height']) + self._internal_height = self._internal_height - lh_offset h = self._internal_height if uh is None else uh w = uw else: