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

Infinite-scroll function is not called when page is resized #367

Open
bradlys opened this issue Aug 24, 2017 · 1 comment
Open

Infinite-scroll function is not called when page is resized #367

bradlys opened this issue Aug 24, 2017 · 1 comment

Comments

@bradlys
Copy link

bradlys commented Aug 24, 2017

I have a column inside my page that uses this ngInfiniteScroll. It's a people picker (you click a person and it filters on that person for results in another column). If the column containing the results is bigger than the results list because you have a very large window or someone resizes the window to where there is no longer a scrollbar, the ngInfiniteScroll won't call my 'show more people' function. Presumably this is because it listens on scroll events but there's no scroll even to happen when the element expands to where it no longer has a scrollbar.

Is there a way around this for both scenarios?

@mgm09a
Copy link

mgm09a commented Jun 11, 2018

@bradlys Have you tried using the "infinite-scroll-listen-for-event" option and setting it up to listen for a window resize event?

infinite-scroll-listen-for-event (optional) - {string} - The name of an event that, when received, will cause the scroll position check to be re-run. This is useful if you need to manually trigger the scroll handler, for instance if your items have been filtered or modified without altering the collection.

Read more about parameters.

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