Inconsistent rendering of (grid) context menu

If I open the context menu on the first row in my grid I get:
image

and if I open it on the last row I get:
image

Looks like the height is the same, but it wraps some of the entries.
I did try white-space: nowrap; but that didn’t look good either:
image

I should add that when I open the menu on the last row, there is not enough room below it, so it gets pushed up.

As the context menus gets taller, I think they seem too narrow as well.
Adding this gives a more pleasing size, and it works around the issue:

vaadin-context-menu-list-box {
    width: 35ch;
}

image

Not sure it will work in all cases though, so would still like it to work sensibly out of the box.