kivy/kivy — pull request #1907 by matham (2014-02-20 22:41:19+00:00)
Title: Correct label padding to be positive, not negative.

Before, padding of label had to be set to a negative value in order to make the label move inward. This fixes it. I think this behavior was by mistake, not intentionally. To see the problem, run this example before and after the commit:

from kivy.app import runTouchApp
from kivy.lang import Builder

kv = """
Label:
text: "Here is some text"
text_size: self.size
padding: [20, 5]
"""

if __name__ == '__main__':
runTouchApp(Builder.load_string(kv))

Before the commit, part of the label moves outside the edges of the window.