Skip to content

[mac] Remember last document window size for new windows - #407

Merged
Shpigford merged 2 commits into
mainfrom
issue-383
Aug 23, 2026
Merged

Shpigford merged 2 commits into
mainfrom
issue-383

Conversation

@Shpigford

Copy link
Copy Markdown
Owner

New document windows always opened at the hardcoded 800×900 default because SwiftUI's DocumentGroup never adopts the user's last-used size. This adds a DocumentWindowSizer that saves the window size on every resize (drag, zoom, or scripted; skipped in fullscreen) and applies the remembered size to newly opened windows, clamped to the screen and the 600×360 minimum. Windows opened as tabs leave their host window's size alone. Verified in the running app: resize once, and every subsequently opened file adopts that size.

Fixes #383

@Shpigford
Shpigford merged commit 9da6b1d into main Aug 23, 2026
3 checks passed
@Shpigford
Shpigford deleted the issue-383 branch August 23, 2026 20:45
@uilianfragallo uilianfragallo mentioned this pull request Aug 27, 2026
1 of 3 tasks
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.

Tamanho da janela

1 participant