Is your feature request related to a problem? Please describe.
See this reddit post. I noticed it when expanding a details element with a long list of definitions.
Describe the solution you’d like
The scrollbar should not take up space.
Describe alternatives you’ve considered
Add an option to disable the scrollbar entirely (not ideal).
I personally don’t know much about it, but some web dev once told me not having this in the stylesheet by default is totally normal. At least for browsers.
One issue I see is if you have a small box, overflow is probably better than scrollbars. Tiny scrollbars can also be an A11Y issue.
That’s how the scrollbar works by default?
Edit: I think you misunderstood. I meant that the “auto” thing didn’t change the default behavior, i.e. the problem is not fixed.
In any case, showing the scrollbar isn’t the problem. The problem is that when it’s shown, it shifts the card’s contents instead of appearing on top, causing the jittery movement.
There are other solutions in the post, but the average user will just not think about them and keep getting annoyed by this issue. So I think it should be added natively.
That addition probably helped, but the last sentence of the post, seems a little late. And regardless, you never really say what is wrong, you just jump to possible solutions that don’t work. Even the title made me think that you were asking for a way to make sure the card shifts when the scrollbar is added.
You’re right, but the link he linked to explains the issue.
Here’s the problem: if the scroll bar appears upon revealing the back of the card, the front of the card shifts to the left by the width of the scroll bar.
It can be easily reproduced by reducing the window height and adding a very long (over multiple lines) string into the back side (and having a short string in the front side).
Fair enough, I’m not the best at explaining things. Still the reddit post demonstrates the problem clearly and there are solutions provided by some redditors. Additionally, I made this post in the “suggestions” category, not in help.
The following might help to visualize the issue for everyone here to play around with. I essentially did the following, editing the default basic note type:
Removed the id from the <hr>, so that anki won’t autoscroll.
I added a fixed div which has several tiny colored boxes.
You can count the boxes to understand better what the issue is.
If you count the black boxes from the left, you can see that before the back was shown the “T” of “This” was placed after the 5th black box – after the back is shown (and the scrollbar appeared) the “T” of “This” is placed directly on the 5th black box.
Oh, I see! It didn’t even occur to me you could be talking about the main post on Reddit, since you had a jumplink that went straight to the comments you started talking about.