Fix macOS scaling size

pull/7558/head
2dust 2025-07-04 20:48:32 +08:00
parent 60fcf6174e
commit 6d686b284d
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class WindowBase<TViewModel> : ReactiveWindow<TViewModel> where TViewMode
Height = sizeItem.Height;
var workingArea = (Screens.ScreenFromWindow(this) ?? Screens.Primary).WorkingArea;
var scaling = VisualRoot?.RenderScaling ?? 1.0;
var scaling = (Utils.IsOSX() ? null : VisualRoot?.RenderScaling) ?? 1.0;
var x = workingArea.X + ((workingArea.Width - (Width * scaling)) / 2);
var y = workingArea.Y + ((workingArea.Height - (Height * scaling)) / 2);