Sub-Menus at right side of the list are partially hidden

I have a problem with sub-menus in the far right of my main menu - they open to the right, and spill out of the view on the right margin of the screen.

Can you help with some CSS code that would make them open to the left on so they remain fully visible?