I've been having an issue with the positioning of the MDDropdownMenu in KivyMD. And I think I found a small error. Here is the relevant part of code.
.PY
class MainApp(MDApp):
[...]
def on_start(self):
menu_items = [{"icon": "apple", "text": f"Item #{i}"} for i in range(5)]
self.menu = MDDropdownMenu(
caller=self.root.ids.MD_menu_screen.ids.button, items=menu_items, width_mult=4
)
[...]
.KV
<MDMenuScreen>:
MDRaisedButton:
id: button
pos_hint: {'center_x': .5, 'center_y': .5}
text: 'Open menu'
on_release:
app.menu.open()
And it works, but the bug is in the positioning of the menu. When you start the app, and click the button, it looks like this.
But that's not the weirdest part, when I resize the window, even when I resize and then put it back to normal, it looks normal.
So, I figured it wasn't a problem with my code. It might just be a bug. Now I was hoping someone had a (temporary) fix for this. Thanks in advance!