Closed vnmabus closed 2 years ago
Hi @vnmabus, I found what the error was. The scrollbars were hidden after you called these functions, but the menu updated the rect size shortly after, dynamically changing the scrollbar's visibility.
To solve this issue, I introduced the force param on .show() and .hide() scrollbar methods. Thus, hide_scrollbars call .hide with force=True
.
Also, I've improved Scrollarea.get_view_rect
method and added SCROLLAREA_POSITION_NONE
as a valid position for theme.scrollarea_position
.
See #397 for more details. Let me know if this solves your issue.
It looks like both options work!
I'll merge asap. If you encounter any other issue please let me know. If you need a new PyPI version I'll release v4.2.7
Thank you!
I am trying to adjust the size of the menu to its contents. In order to do that, I am using the following code:
The problem is that the scrollbars appear and hide part of the widgets. I tried using
to get rid of those, but they still appear. I also tried to set the scrollbar thickness to 0 in the theme, but that causes an exception.
Is there a way to disable scrollbars in a particular menu or theme?