From 56121da1573fd8db4c78125f3d535d881dee0ea2 Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Thu, 11 Apr 2024 16:13:04 -0700 Subject: [PATCH] Fix the layout code for the non-modal alert --- Source/NonModalAlertWindowController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NonModalAlertWindowController.swift b/Source/NonModalAlertWindowController.swift index ad399f589..a767a8d08 100644 --- a/Source/NonModalAlertWindowController.swift +++ b/Source/NonModalAlertWindowController.swift @@ -60,7 +60,7 @@ class NonModalAlertWindowController: NSWindowController { var adjustFrame = cancelButton.frame adjustFrame.size.width = max(90, adjustFrame.size.width + 10) adjustFrame.origin.x = newFrame.origin.x - adjustFrame.size.width - confirmButton.frame = adjustFrame + cancelButton.frame = adjustFrame cancelButton.isHidden = false } else { cancelButton.isHidden = true