Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Northout-Salman opened this issue Jun 24, 2019 · 2 comments

Comments

@Northout-Salman
Copy link

Northout-Salman commented Jun 24, 2019

@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
Copy link

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

@binarybang
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants