Skip to content

Editing the bar in place pushes widgets in a crowded position off the screen #428

Closed

Description

@M4n0x

What happens

With Edit Bar in Place, a position with more widgets than fit runs past the screen edge. On a notched MacBook, the right side only has the space between the notch and the edge, so with a busy right side the last widgets end up off screen, and you can't grab them to move or remove them. The faded edge and arrows that should mark a scrolling tray never show, and the mouse wheel does nothing.

Edit bar on main: the right tray runs past the screen edge

Steps to reproduce

  1. Put more widgets in Right than fit beside the notch (about 15 on a 14" MacBook Pro).
  2. Choose Edit Bar in Place.
  3. Look at the right end of the bar.

Expected

Every widget stays on the screen and can be dragged, while editing.

Environment

  • StableBar 0.11.0-beta.20261103222446.601
  • macOS 27.2, built-in display with a notch (1512 pt wide)

Evidence

Drawn offscreen with 4 widgets on the left and 18 on the right of a 1512 pt notched display: the layout gives the right tray 549 pt, but the tray's view is 2188 pt wide, and its widgets reach x = 3132. The same happens without a notch whenever one position gets less room than its widgets need, as in the screenshot above.

Diagnosis

BarEditLayout (Sources/StableBar/BarEditing.swift) sizes each tray correctly. The tray sits in BarEditDropTargetView (Sources/StableBar/BarEditDrag.swift), an NSView hosting the SwiftUI row, and it reports the row's one-line width as its intrinsic size. That constraint has compression resistance 750, which beats the 500 priority of the width SwiftUI gives the view, so Auto Layout stretches the tray and its ScrollView to the full content width. The scroll view then has nothing to scroll, and nothing clips the widgets.

The existing scroll test still passes, because BarEditScrollWheelView moves the clip view to an offset computed from the layout, not from the real view sizes.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 4, 2026
  2. stablebar-releases commented on Nov 6, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.11.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions