-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reducing the selection_box_height
for more than one dropselect during runtime fails
#491
Comments
I should have added instructions on how to use the example code to reproduce the problem, sorry:
|
Thanks for looking into this, and for creating this awesome package in the first place! |
A separate issue related to this: Is it normal that a call to |
Hi @gabindu thanks for the detailed explanation. I will look at this this weekend and let you know when the fix is ready and uploaded to pip. |
Environment information
Describe the bug
Reducing the
selection_box_height
for more than onedropselect_multi
during runtime (for example when the game window was resized) fails, since the second dropselect still has the old size (which can be larger than the new menu size) - but is forced to render while trying to update the first one.My understanding is that calling
_make_selection_drop()
causes a full rerender of the full menu - and therefore the second droplist, which hasn't been adjusted yet.I have attempted to set all
selection_box_height
values for all dropselects first, before then calling_make_selection_drop()
, but this has also failed.It's possible that I'm just not aware of another API function which would help with this, if so, please let me know.
To Reproduce
This is maybe not as minimal as it could be, but shows:
Expected behavior
It should be possible to resize several dropselect selection boxes simultaneously, before the menu gets rendered.
(Additionally, it would be nice if there was an easier way to know beforehand what the largest possible
selection_box_height
can be for a given menu size. Maybe even allowing this to be done automatically, maybe by settingselection_box_height=0
?)The text was updated successfully, but these errors were encountered: