mirror of https://github.com/kivy/kivy.git
Corrected and made example working
This commit is contained in:
parent
c1bcdc1d8e
commit
a27a53eafb
|
@ -49,6 +49,7 @@ identical to that of the ScrollView (size_hint_x=1, default), and set the
|
|||
size_hint_y property to None ::
|
||||
|
||||
layout = GridLayout(cols=1, spacing=10, size_hint_y=None)
|
||||
layout.bind(minimum_height=layout.setter('height'))
|
||||
for i in range(30):
|
||||
btn = Button(text=str(i), size_hint_y=None, height=40)
|
||||
layout.add_widget(btn)
|
||||
|
|
Loading…
Reference in New Issue