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
[Bug]: Adding/Removing Display Changes Window Size #33049
Comments
@dsanders11 did you test this on 18/17? |
@codebytere, just did, reproduces there as well. I can see it actually affecting Fiddle itself as well, which is on v15, so I'd say all supported versions are affected. |
In fact it appears to be an upstream Chromium issue, I can see the Chrome window also shrinking by a pixel as I add and remove the display. EDIT: Upstream issue filed: https://bugs.chromium.org/p/chromium/issues/detail?id=1300415 |
I've tested on Ubuntu and it does not reproduce there, so looking like a Windows only issue. The test fiddle fails on Ubuntu, but only because of the x,y coordinates (there's a sidebar on the left in Ubuntu), but width and height don't change. |
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Sent a PR to cherry-pick the upstream fix: #33109 |
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com>
I've updated this issue to narrow the scope to just the changing window size bug, which was fixed upstream and @RaisinTen has cherry-picked. I may open a new issue regarding the position change, after I check behavior of that on more platforms. |
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: cherry-pick 2ed58f4 from chromium (#33109) Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: update patches Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
* chore: cherry-pick 2ed58f4 from chromium (#33109) Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> * chore: update patches Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
* chore: cherry-pick 2ed58f4 from chromium (#33109) Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: #33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> * Trigger Build * chore: update patches Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/3492658 Fixes: electron#33049 Signed-off-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
Preflight Checklist
Electron Version
19.0.0-nightly.20220207
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
Adding or removing a display will not change the size of a
BrowserWindow
.Actual Behavior
Adding or removing a display does change the size of a
BrowserWindow
.Testcase Gist URL
https://gist.github.com/7f8c673311b123fa4f7fe3444b4d0fea
Additional Information
Gist of course will only work if you have a second monitor to test with - it uses the 'display-added' event.
On Windows the width and height of a window shrinks by 1 pixel every time a display is added or removed. Other platforms are not affected.
The text was updated successfully, but these errors were encountered: