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
Fields with buttons look incorrectly after focusing button #1917
Comments
This is a problem with the negative margin that we apply to the buttons container to right align the buttons correctly. This seems to be triggered only by negative margins with flex layouts. |
Changes in Blink caused our text fields with buttons to look incorrectly after focusing one of the buttons. This happened because we used negative margin to align button to the right edge (to the text field and other component). Instead we now align button contents to the right in text fields. There are still couple of places where negative margin is used but there are no issues with it so far. This commit changes old-style DropdownSelector to use new-style buttons internally to avoid implementing endAligned for the old-style Button. This commit also changes buttons to the new ones whenever possible.
Changes in Blink caused our text fields with buttons to look incorrectly after focusing one of the buttons. This happened because we used negative margin to align button to the right edge (to the text field and other component). Instead we now align button contents to the right in text fields. There are still couple of places where negative margin is used but there are no issues with it so far. This commit changes old-style DropdownSelector to use new-style buttons internally to avoid implementing endAligned for the old-style Button. This commit also changes buttons to the new ones whenever possible.
Changes in Blink caused our text fields with buttons to look incorrectly after focusing one of the buttons. This happened because we used negative margin to align button to the right edge (to the text field and other component). Instead we now align button contents to the right in text fields. There are still couple of places where negative margin is used but there are no issues with it so far. This commit changes old-style DropdownSelector to use new-style buttons internally to avoid implementing endAligned for the old-style Button. This commit also changes buttons to the new ones whenever possible.
Seems like it's rolled back/fixed in Chrome Version 82.0.4085.1 (Dev) but still happens in 80.0.3987.149 |
We will not fix it but keep this issue open until the fix has been released in stable chrome. |
Check if an update of electron fixes this issue |
still occurs in Electron 8.3.1 (Chromium 80.0.3987.165), next Electron version bump to 9.x.y should fix it (Chromium 83) |
electron 9 uses Chromium 83, which fixes the negative margin bug on fields with buttons. e9 changes electron.shell.openItem(path):boolean to electron.shell.openPath(path):Promise<string>
Test notes: check downloads and opening files on all platforms |
I think there was some CSS engine change in Blink, does not happen in Firefox eg.
The text was updated successfully, but these errors were encountered: