I was trying to set up a screen layout made of nested BoxLayouts. Unfortunately, when I try to set up two bottom buttons' size (using size_hint: 0.5,0.5) I get this error:
[CRITICAL] [Clock] Warning, too much iteration done before the next frame. Check your code, or increase the Clock.max_iteration attribute.
However, I get the expected result: Two bottom buttons are in expected place, but after a while application crashes.
<Window2>:
name: 'Window2'
MDBoxLayout:
orientation: 'vertical'
size: root.width, root.height
MDBoxLayout:
orientation: 'vertical'
size_hint: 1, 0.5
MDLabel:
id: label_id
text: 'Text'
MDDropDownItem:
id: drop_item
text: 'Condition'
pos_hint: {'center_x': 0.5}
font_size: 32
on_release:
root.menu.open()
MDBoxLayout:
orientation: 'horizontal'
size_hint: 1, 0.5
MDRaisedButton:
text: 'Back'
size_hint: 0.5, 0.5 # this line is causing the problem
on_release:
app.root.current = 'Window1'
root.manager.transition.direction = 'left'
MDRaisedButton:
text: 'Continue'
size_hint: 0.5, 0.5 # this line is causing the problem
on_release:
app.root.current = 'Window3'
root.manager.transition.direction = 'left'
Ok, so I solved my issue by changing buttons from KivyMD RaisedButtons to standard Kivy Buttons.