Permalink
Browse files

Fixes #175: Bug: update alert text collides with automatic download c…

…heckbox
  • Loading branch information...
1 parent 803925f commit 6960045e2b4f0dfb12996bc71cda283bcded24a6 @andymatuschak andymatuschak committed May 9, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 SUUpdateAlert.m
View
@@ -166,6 +166,9 @@ - (void)awakeFromNib
{
// Resize the window to be appropriate for not having a huge release notes view.
frame.size.height -= [releaseNotesView frame].size.height + 40; // Extra 40 is for the release notes label and margin.
+
+ if ([self allowsAutomaticUpdates])
+ frame.size.height += 10; // Make room for the check box.
// Hiding the resize handles is not enough on 10.5, you can still click
// where they would be, so we set the min/max sizes to be equal to
@@ -174,8 +177,7 @@ - (void)awakeFromNib
[[self window] setMinSize: frame.size];
[[self window] setMaxSize: frame.size];
}
-
- if (![self allowsAutomaticUpdates])
+ else if (![self allowsAutomaticUpdates])
{
NSRect boxFrame = [[[releaseNotesView superview] superview] frame];
boxFrame.origin.y -= 20;

0 comments on commit 6960045

Please sign in to comment.