RTL page: keep scrollbar on the right
See original GitHub issueThank you for the great plugin.
I tried to apply the plugin on my page, which is RTL, and the result is that the scrollbar appears on the left. The native behavior of both Chrome and Firefox is different and a bit weird:
The main page scrollbar is always on the right, but nested elements’ scrollbar is on the left.
Here’s a JSFiddle, which fails to demonstrate the problem since the preview is nested.
Here’s the same page, not nested. You can see that the scollbar is on the right, but once you show the modal, the scrollbar moves to the left.
Is it possible to use your plugin to have the scroll bar on the right side? Otherwise I’m afraid users will be confused, since they expect it to be on the right side.
The only option I found that might be somehow relevant from the name is normalizeRTL
, but I’m not sure what it does. I didn’t see any effect after trying it, and the documentation isn’t too verbose about it.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Implemented in v1.13.0.
Yes, thats completely valid too, as long as you don’t change the direction of the target element to
ltr
or something. Because the class gets updated in that case.