From 1416cdd4c1de76ccee632b6b75aa15737c5c9c37 Mon Sep 17 00:00:00 2001 From: Miguel Machado Date: Mon, 31 Aug 2026 14:22:20 -0300 Subject: [PATCH] fix(mac): stop Capacity Dock hover drift --- mac/Sources/CodeBurnMenubar/CapacityDockController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mac/Sources/CodeBurnMenubar/CapacityDockController.swift b/mac/Sources/CodeBurnMenubar/CapacityDockController.swift index 0d3e6f5a..9ecf7fec 100644 --- a/mac/Sources/CodeBurnMenubar/CapacityDockController.swift +++ b/mac/Sources/CodeBurnMenubar/CapacityDockController.swift @@ -213,6 +213,8 @@ final class CapacityDockController { ) let panel = CapacityDockPanel() let hosting = CapacityDockHostingView(rootView: view.environment(store)) + // Panel geometry has one owner; intrinsic resizing races the frame animator. + hosting.sizingOptions = [] hosting.autoresizingMask = [.width, .height] // At the top edge the menu-bar/notch safe-area inset would push the rail // down, leaving a gap the bottom edge never shows. Opt the rail out of @@ -252,6 +254,8 @@ final class CapacityDockController { ) let panel = CapacityDockPanel() let hosting = CapacityDockHostingView(rootView: view.environment(store)) + // Panel geometry has one owner; intrinsic resizing races the frame animator. + hosting.sizingOptions = [] hosting.autoresizingMask = [.width, .height] hosting.interactiveShapeContains = { [weak model] point, bounds in guard let model else { return false }