Use visibility collapse/visible instead of hide/show

.hide() uses CSS display none which shift the position of the cell while
visibility collapse keeps the size of the cell.
This commit is contained in:
Cédric Krier committed 2015-10-25 00:58:51 +02:00
1 parent 21e85b170d
commit 7bee0ff4f2
1 file changed
+2 -2
+2 -2
View File
@@ -2037,9 +2037,9 @@
cell.css('width', width + '%');
}
if (cell.children().css('display') == 'none') {
cell.hide();
cell.css('visibility', 'collapse');
} else {
cell.show();
cell.css('visibility', 'visible');
}
i += colspan;
});