Repository navigation
fix: adjust window size in NCCALCSIZE instead of adding insets - #19883
Merged
Merged
Conversation
zcbenz
approved these changes
Aug 23, 2019
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "6-0-x" cleanly; |
Contributor
|
I have automatically backported this PR to "7-0-x", please check out #19942 |
Contributor
|
A maintainer has manually backported this PR to "6-0-x", please check out #19944 |
3 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Instead of adding a border to the root view to compensate for the behavior of Windows (expanding a frameless window beyond the size of the monitor to compensate for a non-existing border), this PR adjusts the window area reported to Windows.
The solution with the added border was working OK-ish, except when you changed from a maximized state to fullscreen, which didn't remove the insets. Sadly setting the insets requires a re-layout, which lags behind the Windows native events, and would cause the border to show up momentarily.
Fixes #19481.
Checklist
npm testpassesRelease Notes
Notes: Fixed a bug where sometimes a ~10px white border would be added to fullscreen windows on Windows.