mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-25 03:06:53 -06:00
auto_row_height estimated a line of a bigger font by scaling the sheet's default row height by size / 11. When the sheet's default already fits that font, the font counted twice: Excel for Mac saves rows of 16pt text with defaultRowHeight="21" (28px) and no ht, and opening such a file fitted every row to 40.7px, 1.45 times Excel's height. Rows mixing Middle and Bottom aligned cells then looked misaligned. The estimate now scales an 11pt row's height (DEFAULT_ROW_HEIGHT), so those rows open at 29px, and rows on a 15pt-default sheet still grow to their font (#833). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>