Repository navigation
[GUI] Name the real cause of the row height fix - #862
Conversation
The edit box of #835 was one pixel taller only with a font whose leading exceeds two pixels: Qt's fallback box font on the font-less Windows CI job. Segoe UI has no leading, and the Windows capture is the same before and after #835. 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 @arnodelorme's task in 35s —— View job PR review: #862, which corrects the stated cause of the row height fix
Verdict: no blocking or important issues. The PR changes only text. Checks on the claims
Nits (optional)
Out of scope here: the CI point from the PR body. The Windows CI job does not test real Windows layouts, because offscreen Qt on Windows uses no system fonts. The separate issue the body mentions is the right place for that. |
Follow-up to #835: the code comment and the changelog named the wrong cause. No behaviour changes, only text.
QT_QPA_PLATFORM=offscreen, which on Windows reads no system fonts, so Qt draws with its fallback box font. That font has a leading of 3 pixels at 16 pixels, which makes an edit box's minimum size hint (25) taller than its size hint (24). Reproduced on the Mac with the font-lessminimalplatform: develop before [GUI] Measure the dialog row height as the layout sizes an edit box #835 gives rows[57, 28], the exact CI numbers._row_heightand the changelog entry of test_window_without_a_height_is_as_high_as_its_rows fails on Windows (57 vs 56) #834 to say so.No distance histogram: nothing numerical changes.
Details
qoffscreenintegration.cppusesQFreeTypeFontDatabaseon Windows, which reads onlyQT_QPA_FONTDIRor Qt'slib/fonts; the box engine inqfontengine.cppsets leading toceil(0.15 * size)).🤖 Generated with Claude Code