You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A cef web wallpaper can fail to scale properly if the worker window is in on a display that has different windows scaling options. It is unclear to me if this is a windows error, or a cef error. Upon calling NativeMethods.SetWindowPos when placing the window on the correct display, the browser size and scaling factor is incorrect. I have a workaround in the lively core service that is working for me.
To Reproduce
Setup displays such that the worker window puts itself on a display with a different scaling factor
Load a web wallpaper using Cef
Scaling will be incorrect
Expected behavior
Scaling factor/resolution is correctly grabbed from the target display.
Describe the bug
A cef web wallpaper can fail to scale properly if the worker window is in on a display that has different windows scaling options. It is unclear to me if this is a windows error, or a cef error. Upon calling NativeMethods.SetWindowPos when placing the window on the correct display, the browser size and scaling factor is incorrect. I have a workaround in the lively core service that is working for me.
To Reproduce
Expected behavior
Scaling factor/resolution is correctly grabbed from the target display.
Screenshots/Video
Video with both failure condition and workaround
Desktop (please complete the following information):
OS: windows 11
Test wallpaper:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Browser Info</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
.info {
margin: 10px 0;
}
.label {
font-weight: bold;
}
</style>
</head>
<body>
<h1>Browser Information</h1>
<div class="info">
<span class="label">Scale Factor:</span>
<span id="scaleFactor"></span>
</div>
<div class="info">
<span class="label">Screen Resolution:</span>
<span id="screenResolution"></span>
</div>
<div class="info">
<span class="label">Browser Window Size:</span>
<span id="windowSize"></span>
</div>
<div class="info">
<span class="label">User Agent:</span>
<span id="userAgent"></span>
</div>
<div class="info">
<span class="label">Browser Version:</span>
<span id="browserVersion"></span>
</div>
<script>
function updateValues(){
function getScaleFactor() {
return window.devicePixelRatio;
}
</script>
</body>
</html>
Additional context
Add any other context about the problem here.
Log file (Important)
20241229_110618.txt
The text was updated successfully, but these errors were encountered: