Sub menus opening upwards

This is specific to submenus, and the solutions you propose do not work in that case.
This behavior is hardcoded and cannot be changed, and is not the common behavior you find on native MacOS or Windows sub menus (and propably most Linux flavors as well).

In fact the problem has already been raised in the past:

And this one with nice illustrations: