mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-28 17:30:24 +01:00
AutoFit Column Width measured every cell in its own style, but the grid draws a table's cells in the table style, which makes the header row bold, so a bold heading could be fitted too narrow. AutoFit now measures a table cell in the font the table gives it. (Found by CodeRabbit on #2269.) The table-filter AutoFit test checked the fitted column against the engine's text estimate, while AutoFit measures with the font the grid draws (#1316); where that font is installed the estimate is wider, so the test failed off Linux. It now measures the heading as the grid draws it, in the table style's font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>