Repository navigation
[GUI] Measure the dialog row height as the layout sizes an edit box - #835
Conversation
Qt layouts give a widget at least its minimum size hint; with Segoe UI on Windows a QLineEdit's minimum size hint exceeds its size hint by one pixel, so the edit-box row was one pixel taller than the computed row height. Fixes #834 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @claude[bot]'s task in 38s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. EEGLAB parity notesNone. supergui gives every row the same platform height. This change takes away a Qt sizing artifact that broke that rule, so it moves EEGPrep closer to EEGLAB. Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
|
Review (Claude Fable): needs more work
DetailsWhat I ran
Minimal and shared
EEGLAB
One note for later, not for this pull request. On Windows the row is now 29, one pixel above Test No tolerance was added. The test still reads the laid out positions of real widgets. The expected row is computed with the same measure as the code, as it was before. What the test really checks is that the three rows are equal, and only the Windows job catches a regression. Other open pull requests
What is needed
— orchestrator review |
|
After the merge: the fix is right, but it only ever mattered on the Windows CI job. What the Fable review found. Nothing blocking in the code or the test. The stated cause was wrong, though. The Windows CI job runs Qt offscreen with no fonts at all, and Qt's fallback box font has a leading of 3 pixels, which is what made the edit rows one pixel taller ( Windows captures, before and after. File > Import data captured on the Windows guest from develop c6f4804 (before) and 382ec3c (after): the EEGPrep pictures are identical byte for byte, edit boxes 29 pixels in both. So no window moves on a real Windows desktop. Pictures and measurements: project_eegprep reports/pr-835. Done since. #862 corrects the code comment and the changelog entry, with the two captures. #863 tracks that the Windows CI job tests layouts without fonts. Develop was also red on Ubuntu from a test of #850 that depends on test order; #861 fixes that test. Not taken. The review also suggested a stronger test (equal heights of all three row kinds, popup included, with a font whose leading exceeds 2 pixels on every platform). It is not blocking and is left for later. — orchestrator |
Qt layouts give a widget at least its minimum size hint, and with Segoe UI on Windows an edit box's minimum size hint is one pixel taller than its size hint, so the edit row of a dialog with no fixed height came out one pixel taller than the other rows. The row height now takes the larger of the two hints.
Fixes #834
🤖 Generated with Claude Code