aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-30 09:40:04 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-30 09:40:04 +0000
commit8e26f6e3953f3b0e0a891057110c8e24b806a99a (patch)
treecf0f0951c84224f55b5be64cb31389effdf673cf /Source/SPDatabaseDocument.m
parent21008b626e077aefb28b7ef24e202b3a8ded4886 (diff)
downloadsequelpro-8e26f6e3953f3b0e0a891057110c8e24b806a99a.tar.gz
sequelpro-8e26f6e3953f3b0e0a891057110c8e24b806a99a.tar.bz2
sequelpro-8e26f6e3953f3b0e0a891057110c8e24b806a99a.zip
• fixed tablesList's searchField width after collapsing tablesList's view
• set minimum width of right view (Structure, Content, etc.) in order to avoid irreversible GUI overlaps
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 3c83f611..a323d7d3 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -232,6 +232,9 @@
[taskProgressWindow setBackgroundColor:[NSColor clearColor]];
[taskProgressWindow setAlphaValue:0.0];
[taskProgressWindow setContentView:taskProgressLayer];
+
+ [contentViewSplitter setDelegate:self];
+
}
/**
@@ -4446,6 +4449,16 @@
#pragma mark -
#pragma mark SplitView delegate methods
+- (CGFloat)splitView:(NSSplitView *)splitView constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)dividerIndex
+{
+
+ // Limit the right view of DBViewSplitter in order to avoid GUI element overlapping
+ if(splitView == contentViewSplitter) return proposedMax - 470;
+
+ return proposedMax;
+
+}
+
/**
* tells the splitView that it can collapse views
*/
@@ -4456,7 +4469,11 @@
- (void)splitViewDidResizeSubviews:(NSNotification *)notification
{
+ // Fix tablesList search field frame after collapsing the tablesList
+ [listFilterField setFrameSize:NSMakeSize([[[contentViewSplitter subviews] objectAtIndex:0] frame].size.width - 8, [listFilterField frame].size.height)];
+
[self updateChooseDatabaseToolbarItemWidth];
+
}
- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex