From 12dbb36e6f6e310e572986667a2137ba7c5ed0ef Mon Sep 17 00:00:00 2001 From: Evan Schoenberg Date: Fri, 21 Dec 2007 22:23:25 +0000 Subject: [PATCH] Keep the top of a sized-to-fit control the same when localizing. Fixes the egregious part of #8608; the minor part will be ignored for now because it is can't be fixed without significant impact on other languages at present (the nib really needs to just be made localizable rather than using strings-based localization, which can't be done while we're in string freeze for 1.2). Fixes #8608 git-svn-id: svn://svn.adiumx.com/adium/trunk@21966 1c916fce-81e2-0310-a464-8ca513f45935 --- Frameworks/Adium Framework/Source/AILocalizationControl.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Frameworks/Adium Framework/Source/AILocalizationControl.m b/Frameworks/Adium Framework/Source/AILocalizationControl.m index 4c8b3735e..9aef9bc9e 100644 --- a/Frameworks/Adium Framework/Source/AILocalizationControl.m +++ b/Frameworks/Adium Framework/Source/AILocalizationControl.m @@ -143,7 +143,9 @@ default: break; } - + + newFrame.origin.y = oldFrame.origin.y - (NSHeight(newFrame) - NSHeight(oldFrame)); + float distanceToRightAnchoredView = 0; if (view_anchorToRightSide) { distanceToRightAnchoredView = NSMinX([view_anchorToRightSide frame]) - NSMaxX(oldFrame); -- 2.11.4.GIT