Skip to content

A bar below the macOS menu bar sits partly under it, with one offset for every display #451

Closed

Description

@M4n0x

What happens

Below menu bar puts the bar max(NSStatusBar.system.thickness, NSScreen.main.safeAreaInsets.top) points from the top. It is chosen in setup, or set at first launch when the menu bar doesn't hide.

On macOS 27.2 that formula gives:

  • 22 pt on a display without a notch,
  • the notch height on a notched display.

The menu bar itself is taller (heights in the Evidence table), so the top of the bar sits under it.

The offset is also a single number for every display, taken from the main display. With an external main display, the built-in display's bar sits 22 pt down, under a 33 pt menu bar.

Steps to reproduce

  1. Leave Automatically hide and show the menu bar off.
  2. Start StableBar with a new configuration, or choose Keep the menu bar or Below menu bar in setup.
  3. Look at the top of the bar on each display.

Expected

The bar starts right below the menu bar on every display.

Environment

StableBar main at a900ef5 (the same setup code is in v0.12.0-beta.20261107173938.631), macOS 27.2, 14-inch MacBook Pro with a notch, and a 2560×1440 external display as the main display.

Evidence

Found in a UX review of setup: the code on main, plus offscreen renders of the setup views drawn with sample data and a stubbed system, so no permission or setting was touched. The heights below were measured on this Mac.

Display NSStatusBar.system.thickness safeAreaInsets.top Menu bar window height (CGWindowListCopyWindowInfo)
External 2560×1440, main 22 0 30
Built-in, with a notch 22 32 33

NSApp.mainMenu.menuBarHeight returned 30.

In the illustration below, the top bar is drawn at the measured 33 pt. Below it is setup's live bar at the 22 pt offset that setup writes on this Mac:

Bar at a 22 pt offset under a 33 pt menu bar

Diagnosis

  • SetupSession.menuBarHeight (Sources/StableBar/SetupWindow.swift:198-200) and the first-launch configuration (Sources/StableBar/BarStore.swift:136-139) use that formula. SetupPreferences.edits writes it as bar.offset (Sources/StableBar/SetupPreferences.swift:254-256).
  • updatePanels places every display's bar at top - bar.offset (Sources/StableBar/StableBarApp.swift:401-403). One number can't match displays whose menu bars differ in height.
  • SetupSession.placement recognizes Below menu bar only when the offset equals that formula (SetupWindow.swift:210-214). An offset corrected by hand shows neither placement as chosen, and choosing Below menu bar writes the formula again.

Possible fix: store the placement as "below the menu bar" instead of a number. Each display then works out its own menu bar height, for example frame.maxY - visibleFrame.maxY while the menu bar shows, or the height of its menu bar window.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 8, 2026
  2. stablebar-releases commented on Nov 10, 2026

    @stablebar-releases

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