[GH #500] Nested headers UI mismatch after hiding a column and rebuilding headers via updateSettings()

Body
Hi Handsontable team,

We found an issue when using a custom flow to hide columns and rebuild nested headers.

This does not happen with the default Handsontable nested headers behavior.
It appears only in our case where we must rebuild and re-render nested headers dynamically.

Steps to reproduce

  1. Hide a middle column (example: visual column index 4, column E).

  2. Observe:

    • console shows correct hiddenVisual and next nested headers,

    • UI still hides/misaligns more than expected.

Expected

After hiding column E, only that column should be removed and parent group colspan should update correctly in UI.

Actual

Even though nestedHeaders passed to updateSettings() is correct, UI renders incorrect nested headers (more than one column/group appears affected).

Question

Is this a known limitation/bug in dynamic nested-header rebuild after hide/show?
Is there a required API/order beyond updateSettings() + render() to force full nested-header recalculation and repaint?

JS fiddle: https://jsfiddle.net/ex3quj02/1/

Handson version: 16.2

Hi @sagun.saluja1

Thank you for reaching out to us. We have this issue reported internally. I added your report there and will let you know as soon as I have any updates.