handsontable / handsontable

JavaScript data grid with a spreadsheet look & feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚡
https://handsontable.com
Other
19.15k stars 2.94k forks source link

Fix columns incorrect width calculations for `stretchH: 'all'` #10954

Closed budnix closed 2 weeks ago

budnix commented 2 weeks ago

Context

The PR fixes a bug where the internal states were not cleared after changing the dataset, which causes miscalculations of the column widths when the stretch: 'all' option was used.

How has this been tested?

I tested the changes locally, and I covered the fix with a new test.

Types of changes

Related issue(s):

  1. fixes https://github.com/handsontable/dev-handsontable/issues/1727

Affected project(s):

Checklist: