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

This commit is contained in:
Andy Matuschak committed 2012-05-09 09:19:20 -07:00
1 parent 803925f2cf
commit 6960045e2b
1 file changed
+4 -2
+4 -2
View File
@@ -166,6 +166,9 @@
{
// 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 @@
[[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;