# Menus in RTL have arrows that point the wrong way #777

Closed
opened this issue Mar 29, 2014 · 8 comments

Projects
None yet
2 participants

### amire80 commented Mar 29, 2014

 When MathJax is set to Hebrew user interface and I right-click a formula, I see the pop-up menu items correctly aligned to the right (thank you very much for this, MathJax developers!). There's one glitch in the RTL support here: The sub-menus in items such as "Show Math As" open on the right-hand side of the main menu, and the arrows point to the right as well. In a right-to-left language, the arrows are supposed to point to the left and the sub-menus are supposed to open there as well. (I tested the implementation of MathJax in Wikipedia.)

Member

### dpvc commented Mar 30, 2014

 Thanks for the information. The RTL support is pretty rudimentary at the moment, and there is a lot of work that still needs to be done for this, so it is good to hear from you what needs adjusting. It is not something I know a lot about, but will learn more when we do a more thorough implementation of RTL.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 9, 2014

 Move submenus to the left for RTL languages, and make menus open to t… 
…he left as well. Resolves issue mathjax#777.
 432f5eb 
Member

### dpvc commented Apr 9, 2014

 OK, I've made the changes that are needed to make the menus point and open in the proper direction. I hope that does the trick for you.

### dpvc pushed a commit to dpvc/MathJax that referenced this issue Apr 11, 2014

 Merge branch 'issue777' into develop. Issue mathjax#777. 
 0c083de 

Member

### dpvc commented Apr 11, 2014

 => Merged.

Author

### amire80 commented Apr 19, 2014

 Thanks! How can I test this fix? I cloned and checked out the develop branch. I see the RTL fix in unpacked/extensions/MathMenu.js, but not in the minified file under the extensions/ directory. I looked for some kind of a build script that packs it, but couldn't find it. What should I do?
Member

### dpvc commented Apr 19, 2014

 You are right, we don't pack the changed version until the final distribution. If you want to try it on some of your test pages, simply use mathjax/unpacked/MathJax.js?config=... rather than mathjax/MathJax.js?config=/... to use the uncompressed version. There is no need to compress it in order to do testing. Let me know if that's not enough to get it running for you.
Author

### amire80 commented Apr 19, 2014

 Ah, awesome. I simply added "unpacked" in the test/index.html line that loads MathJax.js. I confirm that the menu is fixed. Thank you! I hope to see it released and deployed on Wikipedia some time soon :)
Member

### dpvc commented Apr 19, 2014

 Thanks for checking it for us. We hope to have a new bug-fix release soon.

### dpvc pushed a commit to mathjax/MathJax-test that referenced this issue Apr 22, 2014

 Add test for issue mathjax/MathJax#777, and fix titles math-menu-1. 
 66bdf93 
Member