You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
Chitaoji
changed the title
MDDropdownMenu Acts Incorrectly When show_duration<0.3
MDDropdownMenu Acts Incorrectly When show_duration<0.3 (With Solution)
Oct 24, 2024
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
The text was updated successfully, but these errors were encountered: