aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-05-25 23:45:18 +0000
committerrowanbeentje <rowan@beent.je>2010-05-25 23:45:18 +0000
commitd17209f7a0811177b5371f1d744a24be10477ac7 (patch)
treec14dbbade623e7d934f53e0dee209a0576d56607 /Source
parent5a52a184b2d20c307d8a54945193eccb31fc1dce (diff)
downloadsequelpro-d17209f7a0811177b5371f1d744a24be10477ac7.tar.gz
sequelpro-d17209f7a0811177b5371f1d744a24be10477ac7.tar.bz2
sequelpro-d17209f7a0811177b5371f1d744a24be10477ac7.zip
- Fix Connection splitview resizing to affect the underlying view (and so correctly save). Fixes Issue #705
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 582f80da..5e70b516 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -82,7 +82,7 @@
[databaseConnectionView setHidden:YES];
[connectionView setFrame:[databaseConnectionView frame]];
[databaseConnectionSuperview addSubview:connectionView];
- [connectionSplitView setPosition:[[tableDocument valueForKey:@"dbTablesTableView"] frame].size.width ofDividerAtIndex:0];
+ [connectionSplitView setPosition:[[tableDocument valueForKey:@"dbTablesTableView"] frame].size.width-6 ofDividerAtIndex:0];
[connectionSplitViewButtonBar setSplitViewDelegate:self];
// Set up a keychain instance and preferences reference, and create the initial favorites list
@@ -925,10 +925,13 @@
/**
* When the split view is resized, trigger a resize in the hidden table
* width as well, to keep the connection view and connected view in synch.
+ * Use this rather than splitViewDidResizeSubviews: as the latter is not
+ * forwarded by the BWAnchoredButtonBar.
*/
-- (void) splitViewDidResizeSubviews:(NSNotification *)aNotification
+- (CGFloat)splitView:(NSSplitView *)splitView constrainSplitPosition:(CGFloat)proposedPosition ofSubviewAt:(NSInteger)dividerIndex
{
[databaseConnectionView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
+ return proposedPosition;
}
/**