KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
It seems that when duration=self.show_duration - 0.3 is less than 0, the animation will become strange and never-ending, so a single change may fix the problem:
MDDropdownMenu Acts Incorrectly When show_duration<0.3
I tried to create a
MDDropdownMenu
object withshow_duration=0.0
, but the result seemed funny to me (see the screenshot below).I think i've already found the reason why this happened, which was in the class
MotionDropDownMenuBehavior
:It seems that when
duration=self.show_duration - 0.3
is less than 0, the animation will become strange and never-ending, so a single change may fix the problem:It works good with me, and will cause no other problems as far as I can see. But I'm not sure whether the program was meant to be like before.
Code and Logs
Screenshots
Versions