aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-28 21:52:17 +0000
committerrowanbeentje <rowan@beent.je>2009-07-28 21:52:17 +0000
commitd84c65f6edf98e65b99a55984bf0efb8c23e9ce4 (patch)
tree7fe5dca11885d2370645a514f5dd96c46647b7c7 /Source/SPConnectionController.m
parent0dde7ac68d34773c0b5a8cd8af38a931636d80a0 (diff)
downloadsequelpro-d84c65f6edf98e65b99a55984bf0efb8c23e9ce4.tar.gz
sequelpro-d84c65f6edf98e65b99a55984bf0efb8c23e9ce4.tar.bz2
sequelpro-d84c65f6edf98e65b99a55984bf0efb8c23e9ce4.zip
- When getting splitview sizes to resize database menu, correctly use the subview size directly instead of the contents of the scrollview (which incorrectly doesn't measure presence of the scrollbar)
- Remove the connection view entirely once a window has connected, fixing resize events following document splitview resize
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index d52ca7d3..e5a0a473 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -410,7 +410,7 @@
{
// Hide the connection view and restore the main view
- [connectionView setHidden:YES];
+ [connectionView removeFromSuperviewWithoutNeedingDisplay];
[contentView setHidden:NO];
// Restore the toolbar icons
@@ -823,7 +823,7 @@
*/
- (void) splitViewDidResizeSubviews:(NSNotification *)aNotification
{
- [contentView setPosition:[favoritesTable frame].size.width ofDividerAtIndex:0];
+ [contentView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
}