-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
feat: implement win.setAspectRatio()
on Linux
#19516
Conversation
win.setAspectRatio()
on Linux
patches/chromium/feat_implement_unset_window_aspect_ratio_on_linux.patch
Outdated
Show resolved
Hide resolved
patches/chromium/feat_implement_unset_window_aspect_ratio_on_linux.patch
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,49 @@ | |||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
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.
The default should be to try upstream this patch, before we land this patch into electron
can you submit upstream and see if it lands?
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.
Assuming other reviewers' issues are resolved, LGTM
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.
I agree with @MarshallOfSound that the default should be to try and upstream changes like this, but I don't think that needs to block this PR since we can patch locally in the interim.
As long as there's an open upstream ticket for this, I'm fine with landing this locally.
@ckerr will try to get the upstream ticket up before end of week! |
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.
Approving but there is a conflict
@MarshallOfSound fixed the conflict in the also regarding this patch's upstream: will need to get my local setup ready, but might take a while because internet back home is real slow. 😬 |
@erickzhao can you rebase this? |
@codebytere Don't have write access to the repo anymore so I can't 😱 Can't seem to change the branch that this PR was from, either. |
ah ok i can do it then :) |
23702e2
to
169fbf8
Compare
169fbf8
to
d7f7792
Compare
Release Notes Persisted
|
@codebytere When will it be available on really important windows? |
Description of Change
Ref #8036
Implements
win.setAspectRatio()
on Linux using Chromium widget's setAspectRatio function. Works on Ubuntu 19.04.Although the Chromium API is available on both Windows and Linux, a separate PR (#18306) is already opened with a Windows-specific approach.
Limitations to this approach
extraSize
option not availableChecklist
npm test
passesRelease Notes
Notes: Implemented
win.setAspectRatio()
on Linux.