Repository navigation
[GUI] Give dialog rows and push buttons more vertical space - #851
Conversation
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 1m 47s —— View job Code review
BlockingNone. Important
Nits
Test gapsNone. The three new tests check the claimed behaviour through widget geometry, not private state:
EEGLAB parity notes
I checked correctness of the renderer refactor (removed |
| if spec.size is None: | ||
| return | ||
| width, height = spec.size | ||
| width = spec.size[0] if spec.size else dialog.width() |
There was a problem hiding this comment.
Important (stale API): After this change, _apply_spec_size reads only spec.size[0]. Nothing in the repo reads the height half of DialogSpec.size anymore: spec.size is used only here. But DialogSpec.size still says "(width, height); a height of None keeps the height the content needs" (spec.py#L68-L71), and about 98 size=(w, h) call sites still pass a height that now does nothing.
This matters because the next person who sets size=(400, 600) to make a dialog taller will see no effect and get no error. AGENTS.md says "No backward compatibility by default. Replace old APIs and update all call sites" and "Remove … variables … that your change made unused."
Suggested fix: replace the field with a width-only one, width: int | None = None, and update the call sites. If that is too much for this PR, at least change the DialogSpec.size comment to say the height is ignored and the content sets it, and open a follow-up to remove the field.
|
Review (Claude Fable): needs more work
DetailsWhat I checked
Heights before and after, 128 dialog specifications
Largest moves (Fusion, height in px): The direction agrees with rule 26 (the rows set the height, one row height per platform). The gap is in what is shown. Issue #810 asks for every dialog about 10% taller. After this change a user sees the Tools and Plot windows shrink, some by a third, and the body only reports the File and Edit menus. Rules 15 and 26 ask for captures of every window that a shared change moves. Blocking
Important
For Arno
Other open pull requests
CI Pre-commit and the documentation build pass. "Base install without optional extras" fails on Nits
— orchestrator review |
A window whose rows need more than the screen scrolls them, so its buttons stay in reach (pop_rejmenu). A height preset by a specification, scaled as the rows are, stays a floor shared by the rows, so no dialog opens shorter than on develop. Text editor windows are unchanged. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
"One point is for Arno: the comments editor now opens at the height of its text, where EEGLAB opens a large box (the fourth capture shows it). |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Code reviewIndependent review by Codex (OpenAI, model gpt-6.1-terra), run read-only on commit What was done with its findings (commit
— orchestrator BlockingThe scroll rebuild can break dialog state. In ImportantSome dialogs still open shorter than on develop. The scroll decision precedes the preset height. At Blank weighted rows lose their share. At NitsNone. Test gapsThe tests do not establish the claimed height floor or rebuild safety. Screen reachability remains unverified. The vendored |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code reviewThis is an independent review by Gemini (Google, model Gemini 4 Carbon, medium effort, through agy) of pull request 851 at commit c0dfab4, which is the branch brought up to date with develop. The orchestrator itself runs on Claude Opus 5.5. Gemini read the whole diff against develop and did not run the tests. Arno accepted on November 28 that the comments editor opens at the height of its text ("This is ok"), so that point was not reviewed again. On the two points Codex left open. Gemini agrees with neither as a defect that needs a fix. Taking the scroll decision before the preset height floor is correct: when the rows fit the screen, capping the window at the screen height leaves every row and button visible, and a scroll area would be empty. A blank row with One finding Gemini marked blocking, not confirmed. Gemini thought the comments editor measures its text at the width of a hidden widget (about 100 pixels), so a long paragraph would open the window far too tall. I checked this by building the real Fixed in this round. The comment on Findings left as they are, none blocking.
Settled points of the earlier review. Tests on this Mac. 38 passed on the dialog and rejection files. On the wider GUI, dialog, study and rejection set, the 32 failures all come from this Mac's environment (onnxruntime missing for ICLabel, and three tests that fail the same way on develop). Ruff and — orchestrator |
A scroll area does not pass the minimum width of its rows on to the window, so on Windows the rows of pop_rejmenu were cut by 353 pixels (CI of c0dfab4). The scroll area now keeps that width plus room for the vertical scroll bar. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gemini review of cf8dca3: the minimum width of a scroll area that starts to scroll now also counts the scroll bar spacing, the frame and the margins, and never exceeds the screen width. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code reviewThis is a follow-up to the review above. The Windows test job on commit c0dfab4 failed in Gemini (Google, model Gemini 4 Carbon, medium effort, through agy) reviewed that commit on its own. Its blocking finding was that the width did not count the scroll area's frame, its margins and the spacing beside the scroll bar, which some Linux styles use. Commit b4bf597 adds them and caps the width at the screen width, which was its second finding. The test passes under the Mac's native style, the Fusion style and the Windows style. Gemini's other points are not blocking and were left as they are. Windows that are scrollable from the start (preferences) do not use this path and are unchanged. Windows with no preset width can still lose a few pixels to the scroll bar. And the Mac's overlay scroll bars hide such problems from a local run, so CI on Windows and Linux remains the check that counts. — orchestrator |
On the Windows CI screen the rows of pop_rejmenu are wider than the screen, so no width fits them. A dialog that starts to scroll now lets wide rows scroll sideways and keeps the window within the screen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The screen cap of b4bf597 and 1abde57 narrowed pop_study to the 800 pixel offscreen screen of CI and cut its labels. A dialog that starts to scroll now keeps the full minimum width of its rows, as a dialog that does not scroll does on develop. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The orchestrator merged this pull request into develop at Arno's request (his email of November 28, 2026: "Implement the fix and check with another AI. If all is good, merge and indicate that you did merge."). He had answered the one open question on the pull request, the comments editor that opens at the height of its text, with "This is ok", so no change was needed for it. It was good to merge for these reasons. Every CI check of the last head, 20df83c, finished and passed, on Linux, the Mac and Windows, including the Pyodide job. The branch was brought up to date with develop before that run. The independent review by Gemini 4 Carbon found nothing blocking that was still open. Its blocking finding on the comments editor did not reproduce when the real window was measured, and its blocking finding on the scroll area's width is fixed. CI also found a real defect: on the Windows test screen the rows of Reject data epochs were cut by 353 pixels once they scrolled. That is fixed too, because a dialog that starts to scroll now keeps the full width of its rows. Reject data epochs ( — orchestrator |
Ordinary form rows are 10% taller (31 to 34 pixels on Linux) and push buttons go from 20 to 22 pixels, as issue #810 asks. No window opens shorter than on develop any more: of the 127 dialog variants measured, 126 are taller (median +10.0%) and one is shorter, the comments editor, which Arno accepted ("This is ok", his comment of November 28). A window whose rows need more than the screen now scrolls its rows and keeps its buttons in reach: Reject data epochs (
pop_rejmenu) needs 1182 pixels and opens at 1040 on a 1080p screen and at 900 on a MacBook.The three images above are EEGPrep drawn by Qt on the Mac without showing the window. The four images below are the earlier captures on Linux with EEGLAB next to EEGPrep; they show the first version of this pull request, before the heights were restored.
Height of every dialog: develop, first version, now, and on a 900 pixel screen
The Word and PDF reports below still show the first version of this pull request and are not refreshed yet.
Editable Word report · PDF report
Cause and change
The renderer mixed native control size hints with hardcoded dialog heights, viewport sizes, and spacers. It now scales the shared platform row measurement by 1.1 before applying geomvert. Scrollable forms grow to their content up to the available screen height with their footer accessible. Two missing blank rows were restored from the MATLAB definitions.
Verification
167 GUI and affected-function tests passed, with one MATLAB-dependent test skipped, 33 deselected and 112 subtests passing. A separate complete dialog/main-window run passed 147 tests. Ruff, ty and pre-commit passed. All 40 corresponding MATLAB windows and both EEGPrep revisions were captured on jamming under Xvfb. The combined #821 renderer passed 18 checks. The test integration with #835 passed 13 checks. The shared minimum and native-font pitch measurements are independent. Comparing the two equivalent row formulas across 200,000 control-height and spacing combinations produced identical pixels. A fresh virtual integration of #835 selected both final source and test files automatically.
What changed since the first version
The first version let the rows alone set the height, which made 77 of 128 windows shorter than on develop. Now a height preset by a specification, scaled by the same 1.1 as the rows, is a floor, and the rows share the spare height as they did on develop. Rule 26 still holds for a specification without a height: its rows set it. A window taller than the screen moves its rows into a scroll area in place (the widgets and their connected callbacks are kept) and is capped at the available height. The text editor sizing of
pop_commentsis unchanged from the first version.Fixes #810
Part of #745