Skip to content

Comments

Fix: windows resize with display scaling#2578

Merged
SReject merged 2 commits intocrowbartools:v5from
phroggster:fix_issue_2569
Jun 29, 2024
Merged

Fix: windows resize with display scaling#2578
SReject merged 2 commits intocrowbartools:v5from
phroggster:fix_issue_2569

Conversation

@phroggster
Copy link
Collaborator

Description of the Change

Resets BrowserWindow bounds immediately after creation to accommodate display scaling scenarios.

Applicable Issues

Fixes #2569
See also mawie81/electron-window-state#80 (hat-tip SslTomH)

Testing

Tested in Win32 on multiple monitors, including negative of the primary monitor in both X and Y directions, in both maximized and windowed states. Tested over multiple scaling values, including non-scaled.
Solution would still ideally need to be confirmed non-breaking for OS-X and Linux, but it's hard to imagine it would be.

Screenshots

Short two-minute video of existing behavior, then application of these changes, followed by a glimpse of the Windows display settings while it recompiles, followed by the new behavior: https://www.youtube.com/watch?v=L3uRZ8vMTj4

@phroggster phroggster requested a review from ebiggz as a code owner June 13, 2024 07:49
@SReject SReject merged commit 4f0bb33 into crowbartools:v5 Jun 29, 2024
@phroggster phroggster deleted the fix_issue_2569 branch July 6, 2024 11:07
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.

2 participants