Environment information
Describe your environment information, such as:
SO: linux
python version: v3.8
pygame version: v2.1.0
pygame-menu version: v4.2.7
Describe the bug
The size of the widget selection effect is not taken into account when computing the size of the widgets with menu.get_size(widget=True). Thus, adjusting the menu size to the widgets is more difficult than necessary.
The above code tries to adjust the size of the menu to the size of the widgets. Instead, the generated menu looks like this:
Expected behavior
The size of the widget selection effect should be taken into account by menu.get_size(widget=True), and thus no widget should be truncated.
Environment information Describe your environment information, such as:
Describe the bug The size of the widget selection effect is not taken into account when computing the size of the widgets with
menu.get_size(widget=True)
. Thus, adjusting the menu size to the widgets is more difficult than necessary.To Reproduce Execute the following code:
The above code tries to adjust the size of the menu to the size of the widgets. Instead, the generated menu looks like this:
Expected behavior The size of the widget selection effect should be taken into account by
menu.get_size(widget=True)
, and thus no widget should be truncated.