Skip to content

Fix Chrome column width reset during resize overflow - #4919

Open
mrtintin13130 wants to merge 1 commit into
tabulator-tables:masterfrom
mrtintin13130:fix/chromium-column-resize-reset
Open

Fix Chrome column width reset during resize overflow#4919
mrtintin13130 wants to merge 1 commit into
tabulator-tables:masterfrom
mrtintin13130:fix/chromium-column-resize-reset

Conversation

@mrtintin13130

Copy link
Copy Markdown

Fixes #4840

Summary

This fixes a Chrome-specific issue where manually resizing a column past the table width could reset column widths.

The fix preserves user-resized column widths during layout recalculations and ensures the table body keeps enough minimum width when the total column width exceeds the visible table width.

Changes

  • Track columns resized by the user with widthUser
  • Prevent layout modes and horizontal renderers from recalculating user-resized widths
  • Preserve user-resized widths in fitColumns, fitDataFill, and fitDataStretch
  • Set table body minWidth when visible columns overflow horizontally
  • Add regression coverage for resize overflow and responsive fitDataStretch

Tests

npx jest test/unit/core/ColumnManager.spec.js test/unit/modules/Layout.spec.js test/unit/modules/ResizeColumns.spec.js
Result: 23 tests passed. ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Column resize is not applied on mouseUp

1 participant