From b82b531de599ef4c8878a061a30b11589655472e Mon Sep 17 00:00:00 2001 From: Andrew Stein Date: Wed, 26 Jul 2023 12:12:52 -0400 Subject: [PATCH] Clamp row height --- src/js/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/table.js b/src/js/table.js index df305a2..6537e34 100644 --- a/src/js/table.js +++ b/src/js/table.js @@ -57,7 +57,7 @@ export class RegularTableViewModel { while (last_cells.length > 0) { const [cell, metadata] = last_cells.pop(); const box = cell.getBoundingClientRect(); - this._column_sizes.row_height = box.height; + this._column_sizes.row_height = Math.max(10, Math.min(this._column_sizes.row_height, box.height)); this._column_sizes.indices[metadata.size_key] = box.width; const is_override = this._column_sizes.override[metadata.size_key] !== undefined; if (box.width && !is_override) {