Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Wrong div scrollbar position after js margin change to the very first div #196

Closed
klihelp opened this Issue · 2 comments

2 participants

@klihelp

Margin value to the first container will shift the scrollbar.

`
JS:
$('.container').css( 'margin-top', '50');

HTML:
body
#divcontainer
#divscroll
`

@inuyaksa
Owner

When you make a change to DOM and need nicescroll to refresh your position, you have to call resize method.

@klihelp

Thanks, will do that.
The thing is that working if I change the padding-top instead of the margin-top.

@klihelp klihelp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.