Clusterize.js icon indicating copy to clipboard operation
Clusterize.js copied to clipboard

Cannot read property 'offsetHeight' of undefined

Open codevidershpk opened this issue 6 years ago • 4 comments

Cannot read property 'offsetHeight' of undefined at method getRowsHeight line 176 var nodes = this.content_elem.children; var node = nodes[Math.floor(nodes.length / 2)]; opts.item_height = node.offsetHeight;

codevidershpk avatar Sep 07 '17 10:09 codevidershpk

demo?

NeXTs avatar Sep 07 '17 22:09 NeXTs

That's all what i can get from windows errors on client side. I can't reproduce it or i don't know what data has client that gives this error.

codevidershpk avatar Sep 12 '17 19:09 codevidershpk

I have the same error if I create a cluster with no items.

marcgauthier avatar Oct 27 '17 00:10 marcgauthier

I am also facing the same issue. Our app users are getting this error so much. Following is the stack trace:

TypeError: Cannot read property 'offsetHeight' of undefined at p.getRowsHeight (file:/app.asar/UIControllers/clusterize.min.js:11:194) at a.refresh (file:/app.asar/UIControllers/clusterize.min.js:8:505)

ishwarrimal avatar Dec 05 '17 11:12 ishwarrimal