I miss the search function in your comments section, may I've to ask you my question again:

--> Built-in jQuery top dropdown menu

Usually all subentries will open to the right side.
In my case, there are 3 levels of subentries and the dropdown menu is going to open out of the screen area.

Is there a possibility to change the direction of opening to left side?

May the the system will be able to decide the direction by himself?

best regards