Make the menu flip properly with RTL
Fix whitespace issues

For commit dde1048181f9bff957a3fd74409151d4fbb19541