aboutsummaryrefslogtreecommitdiffstats
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
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
-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;