aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 5d93a4f4..50256936 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -844,7 +844,6 @@
}
}
-
#pragma mark -
#pragma mark NSSplitView delegate methods
@@ -857,9 +856,23 @@
[contentView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
}
+/**
+ * Return the maximum possible size of the splitview.
+ */
+- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
+{
+ return (proposedMax - 450);
+}
-@end
+/**
+ * Return the minimum possible size of the splitview.
+ */
+- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset
+{
+ return (proposedMin + 80);
+}
+@end
#pragma mark -
#pragma mark NSView subclass - flipped view for simpler drawing