matrix-react-sdk
c9dc273c - better native scrollbar width compensation for FF

Commit
7 years ago
better native scrollbar width compensation for FF instead of having to offset the padding of children of the autohiding scrollbar container, which gets fiddly quickly, add a new child to the scrollbar container that gets a negative margin of the scrollbar width when needed (on hover and overflowing when overlay is not supported). This needs an extra DOM element, but as it doesn't do anything weird layout-wise (like set position), it shouldn't affect styling at all. It also makes the auto hide scrollbar workarounds completely transparent to the rest of the code.
Author
Committer
Parents
Loading