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

layoutComplete event fires early when no items are visible #885

Closed
EvanHerman opened this issue Mar 18, 2015 · 2 comments
Closed

layoutComplete event fires early when no items are visible #885

EvanHerman opened this issue Mar 18, 2015 · 2 comments

Comments

@EvanHerman
Copy link

I have set up a test fiddle, and added an extra filter check box. This chec kbox has no items associated with it, so when it's set nothing is displayed.

You'll notice that when you click '.green' or any of the others the filtering animation is run and then the call back fires. If you click orange, you'll see that the callback event fires well before the animation is complete. If none are visible, and orange is checked off and you click 'shuffle' the correct number is returned.

I'm using this function to get the number of items visible, and running a function if none are. This small bug makes it hard to figure out if any are visible or not.

In short :
When 0 items are visible after a filter, the callback event fires too soon

http://jsfiddle.net/QsCZx/244/

Thanks,
Evan

@desandro
Copy link
Member

Thanks for reporting this issue! This sounds like a duplicate of #732. Sorry I do not have a solution for now.

@EvanHerman
Copy link
Author

Thanks for responding. Sorry I didn't catch the duplicate ticket.

Best,
Evan

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

No branches or pull requests

2 participants