Skip to content

Commit 4a2f851

Browse files
committed
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
1 parent fcd7bd4 commit 4a2f851

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/MacVim/MMPreferenceController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ - (void)windowDidLoad
2626
NSRect frame = generalPreferences.frame;
2727
frame.size.height -= sparkleHeight;
2828
generalPreferences.frame = frame;
29-
for (NSView *subview in generalPreferences.subviews) {
30-
frame = subview.frame;
31-
frame.origin.y -= sparkleHeight;
32-
subview.frame = frame;
33-
}
3429
#endif
3530
[super windowDidLoad];
3631

0 commit comments

Comments
 (0)