Property SnapToDevicePixels was set to true for main window