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

variable row height and complex divs #154

Open
sido420 opened this issue Jul 15, 2018 · 1 comment
Open

variable row height and complex divs #154

sido420 opened this issue Jul 15, 2018 · 1 comment

Comments

@sido420
Copy link

sido420 commented Jul 15, 2018

I'm building a chat application where I wanted to use Clusterize for the main chat page.

As we already know chat messages can be complex including text only, images+text, videos, embeds, iframes etc and can have dynamic heights (ie. not known in advance).

Would this be OK to use Clusterize for smooth scrolling and div management? The only plus point seems to be the potential size of list that might only grow up to a few thousand (that too very rarely). Any thoughts on this?

Also, I'm using Backbone.js/Marionette, so a list would be rendered first (exists in DOM), then following code would be used on it.

var clusterize = new Clusterize({
  scrollId: 'scrollArea',
  contentId: 'contentArea'
});

However, new items would be added to collection that would in turn add the new div element to content list div in DOM. Then, do I have to literally add new item to Clusterize instance as well or it tracks the content div automatically for new additions? Please suggest the most efficient approach here.

Thanks.

@ghost
Copy link

ghost commented Sep 8, 2019

@sido420 Have u tried it? Does it work with variable height?

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

1 participant