From 06417f763e8c3d2aa56a94ae73a46072e4e6606a Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sun, 2 Apr 2023 17:13:29 +0800 Subject: [PATCH] Fix misaligned columns at certain fractional widths Fixes #2 --- paginator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paginator.js b/paginator.js index 143dde9..9c0fb37 100644 --- a/paginator.js +++ b/paginator.js @@ -241,7 +241,7 @@ class View { const doc = this.document Object.assign(doc.documentElement.style, { boxSizing: 'border-box', - columnWidth: `${columnWidth}px`, + columnWidth: `${Math.trunc(columnWidth)}px`, columnGap: `${gap}px`, columnFill: 'auto', ...(vertical