Skip to content

fix: incorrect size of windows on differently scaled monitors - #21100

Merged
deepak1556 merged 2 commits into
masterfrom
robo/fix_window_placement
Nov 15, 2019
Merged

deepak1556 merged 2 commits into
masterfrom
robo/fix_window_placement

Conversation

@deepak1556

@deepak1556 deepak1556 commented Nov 13, 2019 •

Copy link
Copy Markdown
Member

Description of Change

This reverts #19928 , we need the SetWindowPlacement hack for the scaling to work correctly and the problem this PR was trying to address #19423 can be fixed my not resetting the size of last_normal_placement_bounds_ a1562bd before adjusting the window placement as it had essentially null'd the right and bottom coordinates.

Fixes #20683
Fixes #20527

Checklist

Release Notes

Notes: fix incorrect size of windows on differently scaled monitors

@deepak1556
deepak1556 requested review from a team, brenca and zcbenz November 13, 2019 06:34
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Nov 13, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 14, 2019
@trop

trop Bot commented Nov 15, 2019

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "6-1-x", please check out #21137

@trop

trop Bot commented Nov 15, 2019

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "7-1-x", please check out #21138

@trop

trop Bot commented Nov 15, 2019

Copy link
Copy Markdown
Contributor

@deepak1556 has manually backported this PR to "8-x-y", please check out #21139

@deepak1556
deepak1556 merged commit fbc3bb8 into master Nov 15, 2019
@release-clerk

release-clerk Bot commented Nov 15, 2019

Copy link
Copy Markdown

Release Notes Persisted

fix incorrect size of windows on differently scaled monitors

@deepak1556
deepak1556 deleted the robo/fix_window_placement branch November 15, 2019 17:28
@deepak1556

deepak1556 commented Nov 15, 2019 •

Copy link
Copy Markdown
Member Author

The failing tests are unrelated to the PR. Seems to be caused by a recent change #20825 /cc @miniak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants