question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RTL page: keep scrollbar on the right

See original GitHub issue

Thank 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KingSoracommented, Aug 2, 2020

Implemented in v1.13.0.

1reaction
KingSoracommented, May 30, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting the correct orientation for scrollbars in right-to-left pages
When you are in RTL layout and you are placing a menu on the right. Being an scroll bar beside it is not...
Read more >
Scrollbars in right-to-left layout - UX Stack Exchange
iOS always displays scroll bars on the right. Should they be displayed on the left in RTL mode? With right-aligned content (images on...
Read more >
Position Vertical Scrollbars on Opposite Side with CSS
The trick here is to have the scrolling parent element use direction: rtl (or the opposite of whatever your primary direction is), and...
Read more >
192767 - Horizontal scrollbar missing on right-to-left (RTL ...
This patch tries to resolve following three problems as to rtl direction for all scrollframes, although it needs resize reflow. 1. Horizontal scrollbar...
Read more >
How to Change the Position of Scrollbar using CSS
} /*This cause the division content. to be displayed from right to left */ .Flipped{. direction: rtl;. } ; width: 5px; · /*...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found