Skip to content

Size popups to their content instead of requiring a height #4

Closed

Description

@Seb-GRAF

Problem

popup.height is required (Sources/StableBar/PopupConfiguration.swift:23, README "Custom popups"), so every popup needs a guessed height. Too small and the content scrolls; too large and the popup has empty space. Popups generated from a widget's menu guess 50 points per row (Sources/StableBar/BarView.swift:209), which is wrong for rows without a detail line or with long text.

Proposal

Make height optional. Without it, size the panel to the layout's height at the popup width when it opens, still capped to the space below the bar. Use the same sizing for generated menu popups. A configured height stays a fixed height.

Possible today

Only with a hand-picked height; longer content scrolls.

Related

None tracked. #1 (afeadcd) changed the neighbouring sizing code in WidgetPopup.swift.

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 15, 2026
  2. github-actions commented on Oct 15, 2026

    @github-actions

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

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions