[SOLVED] PopupMenu window size

Is there a way to limit the size of a popup menu’s window to a specific one?
At the moment the size appears to be limited only by the screen’s bounds, and I’d like it to be smaller, letting the user scroll among items when these are too many to be displayed at once.

Ok, I found a solution.
I’ve created a temporary Component with the size I wanted and passed it as parentComponent to the menu via PopupMenu::Options.