aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.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/TableDocument.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/TableDocument.m')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
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;