From 7bee0ff4f2358cf08164f074aea8084b53746932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 25 Oct 2015 00:58:51 +0200 Subject: [PATCH] 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. --- src/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.js b/src/view.js index 45ba803d11..266d2359cd 100644 --- a/src/view.js +++ b/src/view.js @@ -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; });