fix bug 813964 - Fix RTL menus

Spotcheck:

1.  Within JS console, execute:

document.body.className = "html-rtl hasJS"; document.documentElement.setAttribute('dir', 'rtl');

2.  Open the "docs" menu


Yay, stays within the bounds of the page.