Repository navigation
Description
What happens
When a popup's content gets taller while it's open, a vertical scroll bar flashes on the popup until its height has caught up, although everything fits. In the Sound popup, clicking the chevron next to Sound to show the outputs does it every time. Switching a popup to a taller view does the same.
Steps to reproduce
- Use a bar with the Sound widget (the starter configuration has one) on a Mac with more than one sound output.
- Click the Sound widget to open its popup.
- Click the chevron next to Sound to show the outputs.
Expected
The popup grows to show the outputs without a scroll bar. A scroll bar belongs only to a popup taller than the screen allows.
Environment
- StableBar
mainat 5b27e77; the Sound popup's device lists shipped in v0.19.0-beta.20261120134742.1500, and popup views animate their height since v0.17.0 - macOS 27.2.1, two displays, scroll bars set to Automatic (trackpad)
Evidence
An offscreen test that switches a popup to a taller view sampled its outer NSScrollView while the height animated: the visible height went 48 → 59 → … → 107 → 110 pt against a 110 pt document, with hasVerticalScroller on and the scroller not hidden throughout.
Diagnosis
WidgetPopup.open (Sources/StableBar/Popups/WidgetPopup.swift) resizes a popup when PopupHeightPreference reports a new content height. resize grows the window first, then animates PopupSize.height, which PopupCanvas (Sources/StableBar/Popups/PopupPanels.swift) gives the popup as its frame height. The content already has its new height, so for the length of the animation the ScrollView in PopupView (Sources/StableBar/Popups/PopupView.swift) is shorter than its content and shows its scroll bar. The Sound popup animates its height (EssentialsPopup.popup), as does every popup with views.
Related
- fix: keep popup content at full size while opening #51 fixed the same flash while a popup opens and closes, by keeping the content at its final size during the reveal. Resizing an open popup still goes through the scroll view's frame.
- feat: morph the open popup into the next one when switching widgets #204 keeps the content at full size while one popup morphs into the next.
Triaged by Claude Code (Claude Opus 5.5).
Activity
fix: keep a growing popup from flashing a scroll bar
chore(release): 0.19.0 [skip ci]
stablebar-releases commentedon Nov 25, 2026
🎉 This issue has been resolved in version 0.19.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀