Version: 0.20.0-sdk
OS: Windows 10
On a hidpi (devicePixelRatio > 1) display, every time a window is dragged across the screen to move it, the resize event fires, even though there has been no actual resizing done. Logging the w,h values on the event reveals that there are minor 1 pixel discrepancies every time the window is dragged, likely due to how the hidpi dimensions are calculated. In other words, every time the window is dragged the width/height appears to change randomly by +/-1 pixel causing the resize event to fire.
Running the app with the --force-device-scale-factor=1 does not exhibit this problem.
I can reproduce this issue, but there are some difference.
Environment:
Display: devicePixelRatio =1.25
NW: 0.20.2-sdk
OS: Windows 10
+1. Related: #5675
We are experiencing the same issue when the Windows 7/10 display setting has a devicePixelRatio that is a non-Integer.
Setting the position through the Window api causes the height and width to change by several pixels depending on how far the window is moved. 3 to 4 pixel differences have been observed.
Our current work around is to keep track of what the height and width should be and set the height/width every the position is moved.
Most helpful comment
I can reproduce this issue, but there are some difference.