Skip to content

supergui: on the Mac a checkbox row is taller than an edit row and the box starts 2 pixels left #772

Done

Description

@arnodelorme

On the Mac, a row with a checkbox is 26 pixels high where a row with an edit box is 20, and the checkbox starts 2 pixels to the left of the edit boxes of the same column. Seen in pop_chanevent and pop_export on develop (11743a2), measured with the native Mac style. On Linux the rows are already even.

  • Cause: the Mac style lays a checkbox or a radio button out by a rectangle larger than the widget itself.
  • Fix, shared widget code (guifunc/qt.py, _build_widget): set Qt.WA_LayoutUsesWidgetRect on every checkbox and radio button, so the layout uses the widget's own rectangle. Two lines.
  • Effect, measured on all 127 dialog renderings: on Linux nothing changes (127 identical). With the Mac style 31 dialogs change by a few pixels, and four change size: pop_export 317 to 300 pixels high, pop_chanevent 282 to 254, pop_loadcnt 168 to 161, tf_cycle_calc 617 to 619 wide.
  • No automatic test can see it: the test machines draw with the Fusion style, the Mac one included (offscreen). The evidence is the before and after capture with the Mac style.

The captures before and after are in the pull request and in #745.

Part of #745

Activity

  1. added
    gui-parity
    on Nov 27, 2026
  2. claude commented on Nov 27, 2026

    @claude
    Contributor

    🤖 Plan:

  3. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Ready in pull request #774 (opened by the automatic agent, reviewed, right as it is). Measured on all 127 dialog renderings: nothing changes on Linux, and with the native Mac style 31 dialogs move by a few pixels and four change size. Captures in #774 and in #745.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions