Repository navigation
Properly handle borders on frameless window for DPI > 100% (Windows only) - #8404
Conversation
|
@bsclifton thanks for this 👍 To test this out, is there a way to reproduce this issue against Electron master which still uses Chrome 53? |
|
@kevinsawicki I know we chatted over Slack, but wanted to capture here for record: Should be reproducible on
|
|
More conversation with @bsclifton from Slack posted here: I tested this out on my Windows VM at 200% scale and am seeing rounded top corners on this branch vs. master. This is an empty page window.
Also, I'm also seeing the hover flicker when scrolling a <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
webview {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<webview src="https://github.com/electron/electron/issues"></webview>
</body>
</html> |
|
@kevinsawicki I meant to ask: do you see the flicker issue w/ Chromium 54? |
|
@kevinsawicki The hover flicker is a known issue on webview elements with high DPI values. The issue for it is #7655 and the known workaround can be seen here. MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-@d40d80c |
|
@MarshallOfSound ahh thanks! I was mixing up issues We fixed this in Brave the same way. Besides flickering, hit testing was not working as expected (unless we use this flag). |
|
@kevinsawicki OK I fixed this the alternate way I had found and verified there are no rounded edges 😄 Give it a shot now |
Was noticed when upstreaming border fixes to electron with electron/electron#8404 After @kevinsawicki saw same issue, I fixed with electron/electron@9e0547b (same as this fix) Tested on Windows 10 anniversary edition at 200% DPI and confirmed issue is fixed with this Fixes brave/browser-laptop#4216 Auditors: @bbondy, @darkdh, @bridiver
Awesome, corners looks good on Windows 10, I kicked off a full CI build for this branch so we'll see if any tests need updating. |
|
@kevinsawicki my pleasure 😄 |



Fixes #4573
cc: @zcbenz, @kevinsawicki, @zeke
The problems this fixes
History / description
I had originally submitted a "fix" with #7416, which @zcbenz accepted (and later reverted with #7461, because it failed the tests). I believe this fix masked the issue in Chromium 53.
When upgrading our fork of Electron to Chromium 54 for Brave, we noticed various issues when DPI is greater than 100%. I spent at least a week digging into the Chromium code and discovered the root causes. Remembering the reverted PR above helped when troubleshooting.