Skip to content

Fix MenuBarExtra popup collapsing on macOS 26.4 by restoring fixedSize#22

Open
travisp wants to merge 1 commit into
tobi:mainfrom
travisp:fixes/height
Open

Fix MenuBarExtra popup collapsing on macOS 26.4 by restoring fixedSize#22
travisp wants to merge 1 commit into
tobi:mainfrom
travisp:fixes/height

Conversation

@travisp

@travisp travisp commented Apr 7, 2026

Copy link
Copy Markdown

On updating to macOS 26.4 this past week, I found that AudioPriorityBar can open with an apparently blank device list even though CoreAudio is still returning devices correctly.

Screenshot showing no devices, or even any hidden devices:

Screenshot 2026-04-07 at 3 55 27 PM

This happens even though the devices seem to be in the window:

 osascript <<'APPLESCRIPT'
 tell application "System Events"
   tell process "AudioPriorityBar"
     if (count of windows) = 0 then
       tell menu bar item 1 of menu bar 2
         perform action "AXPress"
       end tell
       delay 1
     end if
     set s to size of window 1
     set txts to {}
     repeat with t in static texts of scroll area 1 of group 1 of window 1
       set end of txts to (value of t as text)
     end repeat
     log "size=" & (item 1 of s as text) & "x" & (item 2 of s as text)
     log "texts=" & (count of txts)
     log txts as text
   end tell
 end tell
 APPLESCRIPT (timeout 120s)

 size=340x133
 texts=13
 SPEAKERSActiveLG ULTRAFINE2MacBook Pro
 SpeakersMutedMICROPHONESActiveAirPods Pro2iPhone Microphone3MacBook Pro
 Microphone

I didn't experience this until updating to 26.4

I believe the cause is that the current MenuBarExtra(.window) layout relies on:

ScrollView { ... }
    .frame(maxHeight: 420)

but the root popup view no longer has:

.fixedSize(horizontal: false, vertical: true)

I can't find anything saying anything changed in 26.4, but this change fixes the problem for me. If it's not just me, hopefully this is helpful.

@charpeni charpeni left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this! I don't have write permission either way, but I wanted to share that I experienced the same issue.

I initially thought it was a permission issue with Tahoe, but it turns out your one-line fix is the solution. I can see all my devices correctly now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants