Skip to content

Commit

Permalink
Clamp row height
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Jul 26, 2023
1 parent effb419 commit b018d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, 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) {
Expand Down

0 comments on commit b018d5c

Please sign in to comment.