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

Redraw causing the page to scroll back to the top #20

Open
stramel opened this issue Jul 6, 2016 · 1 comment
Open

Redraw causing the page to scroll back to the top #20

stramel opened this issue Jul 6, 2016 · 1 comment

Comments

@stramel
Copy link

stramel commented Jul 6, 2016

bricklayer.redraw() is causing the page to scroll to the top. I was previously using masonry and didn't run across this issue. Is there a way to prevent this?

@f
Copy link
Collaborator

f commented Jul 6, 2016

Actually, yes. But we did not handle this. redraw calculates and repositions all the items, meanwhile removes all the content which reset scroll position. We should store scroll position just before redrawing, and when just after redraw, we should set the scrollTop position back.

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

2 participants