-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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]: BrowserWindow.getTrafficLightPosition()
returns { x: 0, y: 0 }
#34969
Comments
* add 4px extra space to title bar part when CC is enabled * trigger relayout when toggling CC so that new height is taken into account * macos: manually position traffic lights so that they line-up with CC
This was done initially for backwards compatibility reasons - @zcbenz do you think we might want to change this? |
The docs say:
This doc isn't as clear as it could be (it should be explicit on what gets returned when there's no custom value) but I agree it ought to be |
Changing this isn't viable, it would be an undetectable breaking change for lots of apps. We could add a new API Updating the setter is |
The API behaved this way since it was introduced, so basically all existing apps are relying on it and we can not just change the behavior. I agree we should introduce a new API and deprecate this one. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bump |
Preflight Checklist
Electron Version
18.3.5
What operating system are you using?
macOS
Operating System Version
12.4
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
Either
BrowserWindow.getTrafficLightPosition()
should returnundefined
if not specified or the actual value it has.Actual Behavior
BrowserWindow.getTrafficLightPosition()
returns{ x: 0, y: 0 }
when not set custom.Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: