I am using perfect-scrollber as Angular directive, but I found this bug and report it.
https://github.com/mdbootstrap/perfect-scrollbar/commit/daeeddf5972c44a960f1d244a4b9719cb7c3d0b7
With the above modifications included in v1.5.2, the title phenomenon will occur under certain conditions.
That particular condition is
・Google Chrome / Microsoft Edge (Chromium Engine version)
・Scaling is set on the screen displaying the browser (I checked by scaling 150%)
・The height is specified for the container with calc(100vh - {n}px)
・The height of the container you are trying to scroll contains after the decimal point
Under these conditions, rect.height and element.scrollHeight will not necessarily have the same value, even if you set it to a non-scrollable height.
For example, rect.height = 1200.33px, element.scrollHeight = 1201px.
Therefore, the Math.round function rounds rect.height so that 1200px <1201px, and the scroll bar is always displayed.
The current workaround is to downgrade to v1.5.1.
Do you have any good ideas?
Hi.
I am using perfect-scrollber as Angular directive, but I found this bug and report it.
https://github.com/mdbootstrap/perfect-scrollbar/commit/daeeddf5972c44a960f1d244a4b9719cb7c3d0b7 With the above modifications included in v1.5.2, the title phenomenon will occur under certain conditions. That particular condition is ・Google Chrome / Microsoft Edge (Chromium Engine version) ・Scaling is set on the screen displaying the browser (I checked by scaling 150%) ・The height is specified for the container with calc(100vh - {n}px) ・The height of the container you are trying to scroll contains after the decimal point
Under these conditions,
rect.height
andelement.scrollHeight
will not necessarily have the same value, even if you set it to a non-scrollable height. For example,rect.height
= 1200.33px,element.scrollHeight
= 1201px. Therefore, the Math.round function roundsrect.height
so that 1200px <1201px, and the scroll bar is always displayed.The current workaround is to downgrade to v1.5.1. Do you have any good ideas?