aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-01 17:08:19 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-01 17:08:19 +0000
commit61c1ffe21ce73752bc195e0312a6a851808601e6 (patch)
tree4603850751314ceec5afc0f4a222a5596b423674 /Source/TableContent.m
parentcccabb7ade09b52ef0fde887533b74c7b73495a3 (diff)
downloadsequelpro-61c1ffe21ce73752bc195e0312a6a851808601e6.tar.gz
sequelpro-61c1ffe21ce73752bc195e0312a6a851808601e6.tar.bz2
sequelpro-61c1ffe21ce73752bc195e0312a6a851808601e6.zip
Put the table content filter in a split view so the field name drop down and search field can be resized. Addresses issue #339.
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 263b48dd..d596eb7b 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2033,6 +2033,24 @@
}
#pragma mark -
+#pragma mark SplitView delegate methods
+
+- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview
+{
+ return NO;
+}
+
+- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
+{
+ return (proposedMax - 150);
+}
+
+- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset
+{
+ return (proposedMin + 200);
+}
+
+#pragma mark -
/*
* Trap the enter and escape keys, overriding default behaviour and continuing/ending editing,