Когда вы устанавливаете height
для GridLayout
на self.minimum_height
, вам нужно указать height
для каждого ребенка. Например, первые три дочерних элемента внешнего GridLayout
могут быть:
TestLabel:
text: "Main Label"
size_hint: (None, None)
size: self.texture_size[0] + 10, self.texture_size[1] + 10
TextInput:
id: oneTxt
size_hint: (1, None)
height: 40
Button:
id: btn1
text: "Button 1"
size_hint: (None, None)
size: self.texture_size[0] + 10, self.texture_size[1] + 10
Аналогично, последние два могут быть:
TestLabel:
text: "End Label"
size_hint: (None, None)
size: self.texture_size[0] + 10, self.texture_size[1] + 10
Button:
id: btn2
text: "Button 2"
size_hint: (None, None)
padding: 10,10
size: self.texture_size