jfcere / ngx-malihu-scrollbar

Angular 2+ scrollbar customization using Malihu jQuery Custom Scrollbar plugin
https://jfcere.github.io/ngx-malihu-scrollbar
MIT License
58 stars 17 forks source link

Unwanted scroll in IE 11 when content height is less than div's max height #50

Open Northout-Salman opened 5 years ago

Northout-Salman commented 5 years ago

@jfcere @teslovych

I'm using "ngx-malihu-scrollbar": "^1.3.1", with windows 10, Angular 5 node 10.16.0

Plugins working nicely on firefox and chrome, but it is showing default scrollbar in IE11, even there is less content.

Expect behaviour It should not show scrollbar untill content height goes larger than div's max-height. (I Apologize for bad English.)

maroy1986 commented 5 years ago

Did you have a code sample or something? I can't reproduce this issue on my end. Thanks!

binarybang commented 3 years ago

Just in case someone finds it helpful: I encountered a similar issue (on all browsers though). The problem was that the resulting content height was not an integer number but scrollHeight (used somewhere nearby in the plugin for calculating if the block is overflown and scrollbar is needed) was always an integer so height comparison resulted in a wrong conclusion. I fixed it by setting an item that was responsible for this to an integer height.