From e55ebf0008da55f10ce379fe0f7025fd18c51a84 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Fri, 27 Feb 2026 10:21:11 +0100 Subject: [PATCH] macos: workaround for TabTitleEditor alignment issue --- macos/Sources/Helpers/TabTitleEditor.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Helpers/TabTitleEditor.swift b/macos/Sources/Helpers/TabTitleEditor.swift index c1784112e..d63820643 100644 --- a/macos/Sources/Helpers/TabTitleEditor.swift +++ b/macos/Sources/Helpers/TabTitleEditor.swift @@ -226,7 +226,9 @@ final class TabTitleEditor: NSObject, NSTextFieldDelegate { if let sourceLabel { let labelFrame = tabButton.convert(sourceLabel.bounds, from: sourceLabel) - frame.origin.y = labelFrame.minY + /// The `labelFrame.minY` value changes unexpectedly after the first use, + /// I don't know exactly why, but `tabButton.bounds` appears stable enough to calculate the correct position reliably. + frame.origin.y = bounds.midY - labelFrame.height * 0.5 frame.size.height = labelFrame.height }