-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"initialPosition" doesn't respect window frame size #10583
Comments
Okay that's a fair complaint. Kinda shocked that no one else has noticed this yet. Thanks! |
That is indeed the same problem! |
This is dangerously close to #10199 so I'm just gonna pull this into 1.11 while I've been looking at these |
## Summary of the Pull Request Turns out, we'd only ever use the non-client size to calculate the size of the window, but not the actual position. As we learned in #10676, the nonclient area extends a few pixels past the visible borders of the window. ## PR Checklist * [x] Closes #10583 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * [x] Works with the `IslandWindow` * [x] Works with the `NonClientIslandWindow`
## Summary of the Pull Request Turns out, we'd only ever use the non-client size to calculate the size of the window, but not the actual position. As we learned in #10676, the nonclient area extends a few pixels past the visible borders of the window. ## PR Checklist * [x] Closes #10583 * [x] I work here * [ ] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * [x] Works with the `IslandWindow` * [x] Works with the `NonClientIslandWindow`
🎉This issue was addressed in #10902, which has now been successfully released as Handy links: |
🎉This issue was addressed in #10902, which has now been successfully released as Handy links: |
Windows Terminal version (or Windows build number)
Version: 1.9.1523.0
Other Software
No response
Steps to reproduce
start wt with "initialPosition": "-1920,0", in the json.
Expected Behavior
start wt with position on the left Screen of 4
Actual Behavior
The Window appears ~8 Pixel left from the left side of the Screen
I have 4 Screens attached to my PC
1 2 3 4
3 is the main screen; the wt should appear on screen 2 Top Left.
If you reduce the value from -1920 to -1927, wt will be positioned on screen 1. the position -1927.0 is actually actually there. I have the feeling that the frame of the Windows is included in the calculation, but it is not there: ((
The text was updated successfully, but these errors were encountered: