From 78b574576459e19b99e3037e846b9a64f1aa9835 Mon Sep 17 00:00:00 2001 From: Ethan Bills Date: Thu, 9 Jan 2025 08:56:14 -0800 Subject: [PATCH] fix: window rendering too high when primary monitor is oriented vertically closes #447 --- .../Views/Hover Window/SharedPreviewWindowCoordinator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DockDoor/Views/Hover Window/SharedPreviewWindowCoordinator.swift b/DockDoor/Views/Hover Window/SharedPreviewWindowCoordinator.swift index 19f8783..89c79b0 100644 --- a/DockDoor/Views/Hover Window/SharedPreviewWindowCoordinator.swift +++ b/DockDoor/Views/Hover Window/SharedPreviewWindowCoordinator.swift @@ -179,7 +179,7 @@ final class SharedPreviewWindowCoordinator: NSWindow { // Horizontally center the preview to the hovered dock icon xPosition = flippedIconRect.midX - (windowSize.width / 2) // Position the preview just above the dock icon - yPosition = screenFrame.minY + flippedIconRect.minY + yPosition = flippedIconRect.minY case .left: // Vertically center the preview to the hovered dock icon xPosition = flippedIconRect.maxX