From 4a2f8511306afd17341fa89ca7bb976119a7a1e2 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Sun, 11 Sep 2022 15:08:51 -0700 Subject: [PATCH] Fix broken preference pane sizing when sparkle disabled The recent change that added smooth resizing changed the alignment for the General preference pane from bottom to top aligned as it never made sense to be bottom aligned. However, there was code in in the preference controller to correct for that when resizing the pane when sparkle is disabled, which caused the resizing to not work. Fix that to account for the top alignment instead of bottom. Fix #1281 --- src/MacVim/MMPreferenceController.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/MacVim/MMPreferenceController.m b/src/MacVim/MMPreferenceController.m index eb1ceb90a3..a8a8448d61 100644 --- a/src/MacVim/MMPreferenceController.m +++ b/src/MacVim/MMPreferenceController.m @@ -26,11 +26,6 @@ - (void)windowDidLoad NSRect frame = generalPreferences.frame; frame.size.height -= sparkleHeight; generalPreferences.frame = frame; - for (NSView *subview in generalPreferences.subviews) { - frame = subview.frame; - frame.origin.y -= sparkleHeight; - subview.frame = frame; - } #endif [super windowDidLoad];