windows: Fix top border overlap#229
Conversation
wangwenx190
left a comment
There was a problem hiding this comment.
Thanks a lot! Only some minor issues
|
Sorry for the late review. I've been to hospital last week and have no access to PC/network ... |
No problem sir. I hope everything is fine now |
|
Thanks! only some minor questions left. And have you tested this PR on different DPIs? Will something be broken if you drag the window between two monitors with different DPI and resolution? |
Yes I've tested, getWindowFrameBorderThickness should handle it. |
|
After some testing, the fix apparently causes some issue on Windows10 EDIT: the patch is now Windows 11 only. |
|
But why only works on Win11? Win10 has a top border as well, can't this PR also fix it? |
This PR fixes a top border overlap on Windows 11 by shifting the content accordingly.
NOTE: The issue can be tested from the main branch by adding a border of 1 pixel at the top of the QML window example, it gets hidden.