aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m4
-rw-r--r--Source/TableDocument.m2
2 files changed, 3 insertions, 3 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];
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 07b6b42b..00c31a15 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2196,7 +2196,7 @@
return;
// grab the width of the left pane
- float leftPaneWidth = [dbTablesTableView frame].size.width;
+ float leftPaneWidth = [[[contentViewSplitter subviews] objectAtIndex:0] frame].size.width;
// subtract some pixels to allow for misc stuff
leftPaneWidth -= 12;