Skip to content

bug: frontend: Settings > Output audio track buttons slide away from their "Audio Track" label in a tall window (upstream #13286) #1135

Closed

Description

@rdoupe

Upstream OBS bug, reported by Tre-Kronor in obsproject/obs-studio#13286 (April 2026, Windows 11, OBS 32.1.1; also in 32.0.4). suogesi reproduced it on Windows 10 with 32.1.2 and opened a one-line fix, obsproject/obs-studio#13357 (still open, not reviewed). When the Settings window is tall, the radio buttons numbered 1 to 6 next to "Audio Track" on Settings > Output move down the page, away from their label. The taller the window, the bigger the gap. It also happens in this fork, and the two recording track rows have the same problem.

Location

frontend/forms/OBSBasicSettings.ui: each track row is a QStackedWidget (single-track radio buttons or multi-track checkboxes) next to a QLabel in a form layout, and each has vsizetype="Preferred":

  • advStreamTrackWidget (line 3365), Advanced > Streaming;
  • advRecTrackWidget (line 3878), Advanced > Recording;
  • simpleRecTrackWidget (line 2882), Simple mode recording.

The Output page sits in a scroll area that fills the window. When the window is taller than the page needs, the spare height goes to these stacks. The buttons are centred in the taller stack, and the label stays at the top of the row.

Class

Layout bug: the controls no longer line up with the label they belong to. No crash, and the settings themselves are unaffected.

How it is reached

Settings > Output, then make the Settings window tall (a tall or rotated monitor, a high-resolution screen, or a small UI font). Upstream's tip: OS display scaling makes it show up on smaller screens.

Reproduced in 0.1.0-beta.20261014

The released AppImage, headless (private Xvfb at 1920x2160, private D-Bus and HOME, fresh profile). A small test plugin opened Settings > Output, resized the window, and logged each widget's position in the window. The table gives how far the centre of the first track button is below the centre of its "Audio Track" label:

Settings window height Advanced > Streaming Advanced > Recording Simple > Recording
700 px 0 px 0 px 0 px
1400 px 90 px - -
2000 px 190 px 269 px 163 px

At 2000 px the streaming track stack is 413 px tall instead of 22 px. A screenshot shows the label at the top of the row and the buttons 1 to 6 far below it, as in the upstream report.

Proposed fix and failing test

Port suogesi's obsproject/obs-studio#13357, with suogesi as the author: advStreamTrackWidget gets vsizetype="Fixed". Do the same for advRecTrackWidget and simpleRecTrackWidget, which upstream's PR doesn't cover.

RED test: test_settings_track_rows (new, cmocka + Qt Widgets on the offscreen platform, no display). It builds the real OBSBasicSettings.ui with uic, using plain Qt stand-ins for its five custom widgets. It shows the Output page at 700, 1400 and 2000 px and checks that each row's first track button stays level with its label (within 3 px). All 3 cases (Advanced streaming, Advanced recording, Simple recording) fail today.

Activity

  1. rdoupe commented on Oct 16, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    A port of suogesi's upstream fix (obsproject/obs-studio#13357), with their commit credited to them, plus the same change for the two recording track rows:

    1. RED: test_settings_track_rows builds the real OBSBasicSettings.ui on Qt's offscreen platform, with plain Qt stand-ins for its custom widgets. It shows the Output page at 700, 1400 and 2000 px and checks that the first audio track button of each row stays level with its "Audio Track" label: Advanced > Streaming, Advanced > Recording and Simple mode recording. 3 of 3 fail today. Reproduced in 0.1.0-beta.20261014 on a 1920x2160 screen: at 2000 px the buttons are 190, 269 and 163 px below their label.
    2. GREEN: suogesi's commit (advStreamTrackWidget gets a Fixed vertical size policy), then the same for advRecTrackWidget and simpleRecTrackWidget.
    3. RED and GREEN in both lanes, full ctest in both lanes, then the release measurement again on the fixed build.
  2. added
    claimed
    on Oct 16, 2026
  3. rdoupe commented on Oct 17, 2026

    @rdoupe
    CollaboratorAuthor

    @Tre-Kronor you reported this in obsproject/obs-studio#13286: in a tall Settings window, the 1 to 6 buttons next to "Audio Track" on Settings > Output slide down, away from their label. It's fixed here in obs-rust by #1136, merged today with a regression test.

    Cause: each track row is a stacked widget that took the window's spare height, and the buttons were centred in it while the label stayed at the top. Each row now keeps a fixed height, the height of its tallest page. The fix is suogesi's upstream one-liner (obsproject/obs-studio#13357), ported with suogesi as the author, plus the same change for the two recording rows (Advanced > Recording and Simple mode), which it didn't cover.

    It will be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases (Windows, macOS and Linux builds; on Arch it's obs-studio-rust-git in the AUR). obs-rust is an AI-assisted fork of OBS.

    If you get a chance to try it with a tall Settings window on Windows 11, a reply here on whether the buttons stay next to their label would really help.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions