Skip to content

Fix chat dropdown positioning - #63

Merged
Blaizzy merged 1 commit into
mainfrom
pc/fix-chat-dropdown-position
Jul 23, 2026
Merged

Fix chat dropdown positioning#63
Blaizzy merged 1 commit into
mainfrom
pc/fix-chat-dropdown-position

Conversation

@Blaizzy

@Blaizzy Blaizzy commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Position the chat model/reasoning dropdown above its trigger in flipped AppKit coordinates.
  • Preserve the existing positioning behavior for non-flipped views.

Root cause

The SwiftUI-hosted NSButton uses a flipped coordinate system, but the menu anchor always used the non-flipped Y calculation. In a normal window, that placed the menu below the composer and outside the app window.

Impact

The dropdown now opens directly above the model picker and remains visible in normal-sized windows.

Validation

  • Regenerated the Xcode project and completed a successful Debug build.
  • Ran the full unit test suite: 33 tests passed.
  • Verified the dropdown visually in a 1240×720 runtime window.

@Blaizzy
Blaizzy marked this pull request as ready for review July 23, 2026 17:15
@Blaizzy
Blaizzy merged commit 72f4bec into main Jul 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant