-
Notifications
You must be signed in to change notification settings - Fork 414
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
redundant rerendering on first time scroll #83
Comments
Hey
how this could be possible if nodes exists? |
Here is an example. http://codepen.io/anon/pen/ORNagp |
Whoa, great catch @kamax1 ! |
Just pushed v0.17.1 Try this http://codepen.io/NeXTs/pen/GjkVoO?editors=1010 Pay attention how I changed html and |
Thank you for the fast response. Works perfectly! |
When scrolling the table for the first time the cluster rerenders and content has bad flashing effect.
I investigated the problem. In my case problem in method getRowsHeight at line
opts.item_height = nodes[Math.floor(nodes.length / 2)].offsetHeight;
opts.item_height equals 0 during initialization (but nodes exists)
so method getClusterNum return Infinity because of division by zero
i've added hot fix
now it works fine for me. Would be cool if you can fix it right way.
I'm using clusterize as directive in Vuejs framework.
The text was updated successfully, but these errors were encountered: