- Notifications
You must be signed in to change notification settings - Fork16.8k
fix: updateBrowserView#lastWindowSize after window resize#43463
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
💖 Thanks for opening this pull request! 💖 Semantic PR titlesWe usesemantic commit messages to streamline the release process. Before your pull request can be merged, you shouldupdate your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Commit signingThis repo enforcescommit signatures for all incoming PRs. PR tipsThings that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
BrowserView#lastWindowSize after window resizecodebytere commentedAug 28, 2024
@mai-121 please address the extra spaces on line 148 (see lint failure) and we can get this merged 😁 |
mai-121 commentedAug 28, 2024
@codebytere Thank you, I will sign these commits tomorrow. |
287ee3c to0daf35cCompare
yangannyx left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks great!
mai-121 commentedAug 30, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@codebytere Appveyor run failed in win-woa-testing, is there anything I can do to resolve it? |
codebytere commentedSep 4, 2024
@mai-121 could you please rebase this on main? once that's done i'll shepherd it in :) |
766f75a toe93038fComparemai-121 commentedSep 4, 2024
@codebytere done. |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "31-x-y", please check out#43635 |
I have automatically backported this PR to "33-x-y", please check out#43636 |
I have automatically backported this PR to "32-x-y", please check out#43637 |
Uh oh!
There was an error while loading.Please reload this page.
Description of Change
Closes#43462
During BrowserView auto-resize, the new size is calculated using BrowserView#lastWindowSize, but lastWindowSize is never updated and remains the value from the initial window size. This results in BrowserView being resized incorrectly.
To fix this issue, we should update lastWindowSize to the current window size after it has been used.
Checklist
npm testpassesRelease Notes
Notes: Fixed BrowserView auto resize issue.