Skip to content

fix: keep a growing popup from flashing a scroll bar - #884

Merged
M4n0x merged 1 commit into
mainfrom
fix/popup-scroll-bar
Nov 20, 2026
Merged

M4n0x merged 1 commit into
mainfrom
fix/popup-scroll-bar

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Problem

When a popup's content grows while it's open, a scroll bar flashes on it until its height catches up, although everything fits. Showing the outputs in the Sound popup does it every time, and so does switching a popup to a taller view.

Fixes #883

Changes

A popup gets its new content height at once, then animates its own height to match (WidgetPopup.resize). For the length of that animation, the ScrollView in PopupView is shorter than its content, so it shows a scroll bar.

  • PopupSize records whether the popup is as tall as its content (followsContent). WidgetPopup sets it where it already compares the content's height with the most the screen allows, before it resizes.
  • While that holds, PopupView's scroll view shows no scroll bar (.scrollIndicators(.never)), since it has nothing to scroll. A popup taller than the screen allows, a popup with a fixed height and the app menu's submenus keep their scroll bars. Content inside resets to .automatic, so scroll views inside blocks keep theirs.

Testing

  • Reproduced it offscreen first: a test that switched a popup to a taller view sampled its scroll view while the height animated. Before the fix, the visible height went 48 → 110 pt against a 110 pt document with the vertical scroller shown throughout. With the fix, the scroller stays off during the same growth. A popup taller than the screen still had its scroller on, and in a separate check a scroll view nested inside a popup's content kept its scroller. AGENTS.md proves purely visual fixes with images rather than UI tests, so these tests aren't part of the pull request.
  • swift test --filter "PresentationIntegrationTests|PopupClickTests|PopupSpacingTests|EndStopSliderTests|FilledSliderTests|MixerStateTests|SceneRendererTests": 98 tests passed. scripts/check.sh --quick passed.
  • The developer ran this build on a scratch bar and confirmed that the Sound popup's outputs open without a scroll bar.
  • Screens: a popup that has finished resizing looks the same as before, so no still image or scene shows the change; the flash lasts the 0.22 s of the resize. No recording is attached yet.

Merging

One commit: any merge method works, and a squash keeps the same message.

Claude Opus 5.5 via Claude Code

A popup gets its new content height at once, then animates its own height to match, so for
the length of the animation its scroll view is shorter than its content and shows a scroll bar.
Opening the Sound popup's outputs and switching to a taller view both did it.

A popup now records whether it is as tall as its content. While it is, its scroll view shows no
scroll bar, since there is nothing to scroll; a popup taller than the screen allows keeps its
scroll bar, and scroll views inside its blocks keep theirs.

Fixes #883
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner November 20, 2026 16:19

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 3 files

Re-trigger cubic

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Before and after

main at 5b27e77 → this pull request at edb3344 · 261 screens drawn · 0 changed

261 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/accessibility-guide-dark, scenes/accessibility-guide-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/apple-menu-symbol-bar-dark, scenes/apple-menu-symbol-bar-light, scenes/apple-menu-symbol-settings-dark, scenes/apple-menu-symbol-settings-light, scenes/bottom-bar-popup-dark, scenes/bottom-bar-popup-light, scenes/chat-popup-dark, scenes/chat-popup-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/disk-meter-bar-dark, scenes/disk-meter-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/edit-bar-wide-group-dark, scenes/edit-bar-wide-group-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/essentials-disk-popup-dark, scenes/essentials-disk-popup-light, scenes/filled-slider-popup-dark, scenes/filled-slider-popup-light, scenes/group-members-bar-dark, scenes/group-members-bar-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/increase-contrast-bar-dark, scenes/increase-contrast-bar-light, scenes/increase-contrast-popup-dark, scenes/increase-contrast-popup-light, scenes/input-source-popup-dark, scenes/input-source-popup-light, scenes/labeled-metric-built-in-dark, scenes/labeled-metric-built-in-light, scenes/labeled-metric-catppuccin-dark, scenes/labeled-metric-catppuccin-light, scenes/meeting-live-popup-dark, scenes/meeting-live-popup-light, scenes/meeting-soon-bar-dark, scenes/meeting-soon-bar-light, scenes/menu-bar-items-widget-settings-dark, scenes/menu-bar-items-widget-settings-light, scenes/merged-status-bar-dark, scenes/merged-status-bar-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/output-device-popup-dark, scenes/output-device-popup-light, scenes/popup-gap-bar-dark, scenes/popup-gap-bar-light, scenes/popup-spacing-bar-dark, scenes/popup-spacing-bar-light, scenes/popup-view-dark, scenes/popup-view-light, scenes/privacy-both-bar-dark, scenes/privacy-both-bar-light, scenes/privacy-hide-when-idle-bar-dark, scenes/privacy-hide-when-idle-bar-light, scenes/privacy-idle-bar-dark, scenes/privacy-idle-bar-light, scenes/privacy-microphone-bar-dark, scenes/privacy-microphone-bar-light, scenes/privacy-settings-dark, scenes/privacy-settings-light, scenes/reduce-transparency-bar-dark, scenes/reduce-transparency-bar-light, scenes/reduce-transparency-glass-bar-dark, scenes/reduce-transparency-glass-bar-light, scenes/ring-bar-dark, scenes/ring-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-link-dark, scenes/settings-bar-link-light, scenes/settings-bar-link-review-dark, scenes/settings-bar-link-review-light, scenes/settings-bar-look-dark, scenes/settings-bar-look-light, scenes/settings-bar-placement-bottom-dark, scenes/settings-bar-placement-bottom-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-calendar-picker-dark, scenes/settings-calendar-picker-light, scenes/settings-calendar-widget-dark, scenes/settings-calendar-widget-light, scenes/settings-crashes-dark, scenes/settings-crashes-light, scenes/settings-disk-widget-dark, scenes/settings-disk-widget-light, scenes/settings-feedback-dark, scenes/settings-feedback-light, scenes/settings-general-dark, scenes/settings-general-light, scenes/settings-general-macos15-dark, scenes/settings-general-macos15-light, scenes/settings-general-macos27-dark, scenes/settings-general-macos27-light, scenes/settings-general-move-dark, scenes/settings-general-move-failed-dark, scenes/settings-general-move-failed-light, scenes/settings-general-move-light, scenes/settings-general-move-moving-dark, scenes/settings-general-move-moving-light, scenes/settings-general-move-replace-dark, scenes/settings-general-move-replace-light, scenes/settings-general-setup-open-dark, scenes/settings-general-setup-open-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-general-yabai-gap-dark, scenes/settings-general-yabai-gap-light, scenes/settings-group-dark, scenes/settings-group-defaults-dark, scenes/settings-group-defaults-light, scenes/settings-group-light, scenes/settings-group-theme-color-dark, scenes/settings-group-theme-color-light, scenes/settings-help-dark, scenes/settings-help-light, scenes/settings-help-starred-dark, scenes/settings-help-starred-light, scenes/settings-labeled-metric-dark, scenes/settings-labeled-metric-light, scenes/settings-narrow-dark, scenes/settings-narrow-light, scenes/settings-package-dark, scenes/settings-package-light, scenes/settings-package-widget-dark, scenes/settings-package-widget-light, scenes/settings-profiles-conditions-dark, scenes/settings-profiles-conditions-light, scenes/settings-profiles-dark, scenes/settings-profiles-groups-dark, scenes/settings-profiles-groups-light, scenes/settings-profiles-light, scenes/settings-profiles-theme-dark, scenes/settings-profiles-theme-light, scenes/settings-store-dark, scenes/settings-store-light, scenes/settings-theme-dark, scenes/settings-theme-edits-dark, scenes/settings-theme-edits-light, scenes/settings-theme-groups-dark, scenes/settings-theme-groups-light, scenes/settings-theme-light, scenes/settings-theme-link-dark, scenes/settings-theme-link-light, scenes/settings-theme-origins-dark, scenes/settings-theme-origins-light, scenes/settings-theme-versions-dark, scenes/settings-theme-versions-light, scenes/settings-tiled-dark, scenes/settings-tiled-light, scenes/settings-tiled-narrowest-dark, scenes/settings-tiled-narrowest-light, scenes/settings-uninstall-dark, scenes/settings-uninstall-failed-dark, scenes/settings-uninstall-failed-light, scenes/settings-uninstall-light, scenes/settings-widget-backgrounds-dark, scenes/settings-widget-backgrounds-light, scenes/settings-widget-colors-dark, scenes/settings-widget-colors-light, scenes/settings-widget-style-theme-edits-dark, scenes/settings-widget-style-theme-edits-light, scenes/settings-workspace-hidden-dark, scenes/settings-workspace-hidden-light, scenes/setup-look-below-menu-bar-dark, scenes/setup-look-dark, scenes/setup-look-no-notch-dark, scenes/setup-look-suggestions-dark, scenes/setup-move-existing-dark, scenes/setup-move-failed-dark, scenes/setup-move-ready-dark, scenes/setup-move-replace-dark, scenes/setup-omniwm-connection-dark, scenes/setup-permissions-dark, and 61 more

Visual review: 261 screens, none changed.

@M4n0x
M4n0x added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 0054b53 Nov 20, 2026
23 checks passed
@M4n0x
M4n0x deleted the fix/popup-scroll-bar branch November 20, 2026 17:59
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A popup shows a scroll bar while it grows to taller content

1 participant