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

offset #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

offset #103

wants to merge 1 commit into from

Conversation

vsesh
Copy link

@vsesh vsesh commented Mar 10, 2017

Calculate top and bottom offsets from scrollElem.

@NeXTs
Copy link
Owner

NeXTs commented Mar 12, 2017

Привет, а в чем преимущество такого варианта?

banjerluke added a commit to banjerluke/Clusterize.js that referenced this pull request Aug 10, 2018
Let's say you have a page that is scrollable, with a screen or two (or more) of non-clustered content, followed by a massive list that you want to be clusterized (but not scrollable itself). This makes that work, by taking into account the offsetTop of the clustered content within the scrollable container, so that the correct cluster number is used.

I had this problem with my website, and found the solution in pull request NeXTs#103 (thanks @vsesh for figuring it out). This version is based on the latest version of the library and has been simplified to only modify one line. Works like a charm on my site. 

Note, no minified version in this pull request.
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

Successfully merging this pull request may close these issues.

None yet

2 participants