You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu: on web in right-to-left layouts the menu opens on the far side of the screen from its anchor #5286
On web, when the layout is right to left (PaperProvider direction="rtl" with <html dir="rtl">, or a LocaleProvider direction="rtl" subtree), a Menu opens at the opposite edge of the screen from its anchor. In a 1280px window with the anchor at the right edge (x 1133 to 1263), the menu opens at the left edge (x 16 to 176), with an inline right: 1104px. In left to right it opens over its anchor.
Menu.tsx sets right to the anchor's left-based x when the direction is rtl. On Android and iOS with the app in right to left, React Native swaps left and right, so the value lands correctly; React Native Web keeps right physical, so the position is mirrored a second time. By the same code, a LocaleProvider subtree on Android and iOS, where the app itself is left to right, is likely mirrored too (not checked).
6.0.0-alpha.3 does the same with <html dir="rtl">; since #5255 it also happens inside a LocaleProvider subtree on web.
Expected behaviour
In right to left the menu opens at its anchor, its right edge on the anchor's right edge.
Activity