py_cui
py_cui copied to clipboard
[FIX] For list index out of range when clicking blank space with mouse in a MenuPopup
Change (In popups.py)
if viewport_top <= y and viewport_top + len(self._view_items) - self._top_view >= y:
To
if viewport_top <= y and viewport_top + (len(self._view_items) - 1) - self._top_view >= y: