Skip to content
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

fix: bug when repositioning traffic lights in RTL mode #22132

Merged
merged 1 commit into from Feb 12, 2020
Merged

fix: bug when repositioning traffic lights in RTL mode #22132

merged 1 commit into from Feb 12, 2020

Conversation

TonyWuu
Copy link
Contributor

@TonyWuu TonyWuu commented Feb 11, 2020

Description of Change

Follow-up to #21781 and #22016, there is a bug when using the new trafficLightPosition API when the system is in RTL mode. cc @mohitsud @seshrs

Using trafficLightPosition: {x: 1, y: 1}:

Bug:
image

Fixed:
image

Bug is due to the fact that the x-position is always calculated from the top left of the screen when using trafficLightPosition, but in RTL mode we should calculate the offset from the right.

Checklist

Release Notes

Notes: Fixed bug that occurred when using trafficLightPosition API in RTL mode

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 11, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 12, 2020
@codebytere codebytere merged commit fe5318d into electron:master Feb 12, 2020
@release-clerk
Copy link

release-clerk bot commented Feb 12, 2020

Release Notes Persisted

Fixed bug that occurred when using trafficLightPosition API in RTL mode

@trop
Copy link
Contributor

trop bot commented Feb 12, 2020

I have automatically backported this PR to "8-x-y", please check out #22162

@trop trop bot removed the target/8-x-y label Feb 12, 2020
@trop
Copy link
Contributor

trop bot commented Feb 12, 2020

I have automatically backported this PR to "9-x-y", please check out #22163

@sofianguy sofianguy added this to Fixed in 8.0.1 in 8.2.x Feb 15, 2020
@sofianguy sofianguy added this to Fixed in 9.0.0-beta.2 in 9-x-y Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
8.2.x
Fixed in 8.0.1
9-x-y
Fixed in 9.0.0-beta.2
Development

Successfully merging this pull request may close these issues.

None yet

5 participants