Borderless windows have a 1px border on the left in virtual machines
digimezzo opened this issue · comments
In some virtual machines (tested in a Windows 10 virtual machine in VMware), borderless windows have a 1 px border on the left size. This is caused by this line in the BorderlessWindowBase
class:
this.windowChrome.GlassFrameThickness = new Thickness(1, 0, 0, 0);
The border of 1 px is needed to allow correct sizing of the window. Removing the border solves this issue, but other window issues arise. No other solution was found. Somehow, this border is only visible in some (not all) virtual machines and not physical machines. It might be related to a setting which is specific to virtual machines.
See screenshot:
This only happens in 1 VM. I presume it is a VM related issue.