Wrong container width inside a Scrollbar if there is no scroll
DmitryScaletta opened this issue · 1 comments
What is the current behavior?
Because of this padding 0.05px
a container inside a Scrollbar has wrong width if there is no scroll.
https://github.com/xobotyi/react-scrollbars-custom/blob/master/src/Scrollbar.tsx#L348
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-scrollbars-custom
. Paste the link to your JSFiddle or CodeSandbox example below:
https://codesandbox.io/s/react-scrollbars-custom-bug-y5ls2
What is the expected behavior?
A container inside a Scrollbar has the same width as a Scrollbar parent if there is no scroll.
A little about versions:
- OS: Windows 10
- Browser (vendor and version): Chrome 78.0.3904.108
- React: 16.12.0
react-scrollbars-custom
: 4.0.21- Did this worked in the previous package version? don't know
🤦♂️ It is the only way to prevent padding/margin leackage =(