From d84c65f6edf98e65b99a55984bf0efb8c23e9ce4 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 28 Jul 2009 21:52:17 +0000 Subject: - 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 --- Source/TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/TableDocument.m') 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; -- cgit v1.2.3