Commit Graph
4 Commits
Author SHA1 Message Date
ajandClaude Opus 5.5 e78fc45149 test(ui): start the grid tooltip timer the dispose test relies on
DisposingAGridStopsItsShowingKeyboardToolTip expected ShowKeyboardToolTip
to leave an auto-pop timer running. On Windows 11 and later keyboard
tooltips are persistent and start none, and showing one hooks the form's
Deactivate, which stops the timer whenever the form loses activation
(it flaked on CI's Server 2022 runner). Set up the running timer
explicitly; the test still fails without GridStyle's dispose hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 21:43:20 -05:00
ajandClaude Opus 5.5 6f4e872c03 fix(ui): stop a grid's keyboard tooltip before the grid is disposed
Browsing nests in Database mode crashed with ObjectDisposedException on
DataGridView: selecting another nest drops the embedded version history,
and WinForms leaves its grid's keyboard-tooltip auto-pop timer running.
When the timer fired it hid the tooltip through the disposed grid.
GridStyle now hides that tooltip when a styled grid's window is destroyed,
which stops the timer for every grid in the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 10:37:47 -04:00
ajandClaude Opus 5.5 2e17dd7bc4 fix(desktop): size grid columns before they are first painted
Grids opened at their designer widths and jumped a moment later, because
GridStyle waited for the first paint with rows before measuring them.
Columns now measure their header and first 50 rows directly: at handle
creation when the rows are already there, otherwise in a call posted when
rows arrive, which runs after the filling code and before the repaint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:46:42 -04:00
ajandClaude Opus 5.5 ebecd42433 feat(desktop): size grid columns to their first content, then leave them to the user
Grid columns no longer stretch to fill the control. GridStyle sizes each
column once to its header and the first rows shown (capped at 400 px),
then the widths are the user's to resize.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 16:31:27 -04:00