Skip to content

Fix center-80 window preset sizing - #640

Open
YuriNachos wants to merge 1 commit into
SuperCmdLabs:mainfrom
YuriNachos:YuriNachos/w5-supercmd-center80
Open

Fix center-80 window preset sizing#640
YuriNachos wants to merge 1 commit into
SuperCmdLabs:mainfrom
YuriNachos:YuriNachos/w5-supercmd-center80

Conversation

@YuriNachos

Copy link
Copy Markdown

Summary

The center-80 preset (UI label "Almost Maximize") now sizes the window to 80% of the usable screen, matching its name. Today it used a 0.9 (90%) multiplier.

Root cause

window-adjust.swift used 0.9 for the center80 case — a copy/paste or misnamed constant — so the window was 90% of the screen, not the intended 80%.

Changes

  • src/native/window-adjust.swift0.90.8 for both width and height in the .center80 case (2 lines).
  • scripts/test-window-adjust-center80.mjs — asserts the resulting frame is 80% of a known area.

This change was developed with AI assistance (Claude Code); every changed line was reviewed and understood.

The center-80 preset ('Almost Maximize') computed the target frame with the wrong multiplier, so the window was not sized to 80% of the screen as intended. Correct the size computation to 80% of the usable screen area.
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