From 8555aefd6179502c4811b6e676e3ccd3d1f802a9 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Thu, 13 Jan 2022 21:02:58 +0100 Subject: [PATCH] fix: fixed settings widget control buttons position for macOS Monterey --- Stats/Views/Settings.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Stats/Views/Settings.swift b/Stats/Views/Settings.swift index fd3879e4..4ad14ad2 100644 --- a/Stats/Views/Settings.swift +++ b/Stats/Views/Settings.swift @@ -31,9 +31,9 @@ class SettingsWindow: NSWindow, NSWindowDelegate { if let close = self.standardWindowButton(.closeButton), let mini = self.standardWindowButton(.miniaturizeButton), let zoom = self.standardWindowButton(.zoomButton) { - close.setFrameOrigin(NSPoint(x: 7, y: 1)) - mini.setFrameOrigin(NSPoint(x: 27, y: 1)) - zoom.setFrameOrigin(NSPoint(x: 47, y: 1)) + close.setFrameOrigin(NSPoint(x: 7, y: close.frame.origin.y)) + mini.setFrameOrigin(NSPoint(x: 27, y: close.frame.origin.y)) + zoom.setFrameOrigin(NSPoint(x: 47, y: close.frame.origin.y)) } self.contentViewController = self.viewController