macOS: Context menus can be cutoff at screen borders

Hi,

am using macos 14.5, 4k monitor, upscaled to 2560x. If I open the context menu, it can run off the screen, at the lower border.

I think the context menu should be always placed that it is completely visible. I think this also was the case before…

It seems like the last line is missing always.