Skip to content
Permalink
Browse files

Fixed blank row with table-layout: fixed. Fixes #53

  • Loading branch information...
NeXTs committed Jul 16, 2016
1 parent 11f7719 commit f4a9fd0a0131f6981ebb066c54deb1215540e66e
Showing with 9 additions and 7 deletions.
  1. +4 −2 clusterize.js
  2. +4 −4 clusterize.min.js
  3. +1 −1 package.json
@@ -1,4 +1,4 @@
/*! Clusterize.js - v0.16.0 - 2016-03-12
/*! Clusterize.js - v0.16.1 - 2016-08-16
* http://NeXTs.github.com/Clusterize.js/
* Copyright (c) 2015 Denis Lukov; Licensed GPLv3 */

@@ -188,7 +188,7 @@
opts.item_height = nodes[Math.floor(nodes.length / 2)].offsetHeight;
// consider table's border-spacing
if(opts.tag == 'tr' && getStyle('borderCollapse', this.content_elem) != 'collapse')
opts.item_height += parseInt(getStyle('borderSpacing', this.content_elem)) || 0;
opts.item_height += parseInt(getStyle('borderSpacing', this.content_elem), 10) || 0;
opts.block_height = opts.item_height * opts.rows_in_block;
opts.rows_in_cluster = opts.blocks_in_cluster * opts.rows_in_block;
opts.cluster_height = opts.blocks_in_cluster * opts.block_height;
@@ -208,6 +208,8 @@
empty_row.className = opts.no_data_class;
if(opts.tag == 'tr') {
td = document.createElement('td');
// fixes #53
td.colSpan = 100;
td.appendChild(no_data_content);
}
empty_row.appendChild(td || no_data_content);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "clusterize.js",
"version": "0.16.0",
"version": "0.16.1",
"description": "Tiny vanilla JS plugin to display large data sets easily",
"main": "clusterize.js",
"style": "clusterize.css",

0 comments on commit f4a9fd0

Please sign in to comment.
You can’t perform that action at this time.