diff options
-rw-r--r-- | Source/SPCustomQuery.m | 2 | ||||
-rw-r--r-- | Source/SPTablesList.m | 11 |
2 files changed, 4 insertions, 9 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 143e40f8..ebc4f726 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3257,8 +3257,10 @@ [queryInfoButton setToolTip:NSLocalizedString(@"Show Query Information", @"Show Query Information")]; [queryInfoPaneSplitView setValue:[NSNumber numberWithFloat:[queryInfoPaneSplitView collapsibleSubview].frame.size.height] forKey:@"uncollapsedSize"]; + [[queryInfoPaneSplitView collapsibleSubview] setAutoresizesSubviews:NO]; [[queryInfoPaneSplitView collapsibleSubview] setFrameSize:NSMakeSize([queryInfoPaneSplitView collapsibleSubview].frame.size.width, 0)]; [queryInfoPaneSplitView setCollapsibleSubviewCollapsed:YES]; + [[queryInfoPaneSplitView collapsibleSubview] setAutoresizesSubviews:YES]; }*/ } diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 88803273..a6e46c37 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -544,22 +544,13 @@ [alert beginSheetModalForWindow:[tableDocumentInstance parentWindow] modalDelegate:self didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) contextInfo:@"truncateTable"]; } -- (void)restoreAutoresizesSubviews:(NSNumber *)flag -{ - [[tableListSplitView collapsibleSubview] setAutoresizesSubviews:[flag boolValue]]; -} - /** * Toggle whether the splitview is collapsed. */ - (IBAction)togglePaneCollapse:(id)sender { - [tableListSplitView toggleCollapse:sender]; - // Probably due to a bug in BWToolkit we have to reset setAutoresizesSubviews to YES - [[tableListSplitView collapsibleSubview] setAutoresizesSubviews:YES]; - [[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:([tableInfoCollapseButton state] == NSOffState)] forKey:SPTableInformationPanelCollapsed]; [tableInfoCollapseButton setToolTip:([tableInfoCollapseButton state] == NSOffState) ? NSLocalizedString(@"Show Table Information", @"Show Table Information") : NSLocalizedString(@"Hide Table Information", @"Hide Table Information")]; } @@ -1875,8 +1866,10 @@ [tableInfoCollapseButton setNextState]; [tableInfoCollapseButton setToolTip:NSLocalizedString(@"Show Table Information",@"Show Table Information")]; [tableListSplitView setValue:[NSNumber numberWithFloat:[tableListSplitView collapsibleSubview].frame.size.height] forKey:@"uncollapsedSize"]; + [[tableListSplitView collapsibleSubview] setAutoresizesSubviews:NO]; [[tableListSplitView collapsibleSubview] setFrameSize:NSMakeSize([tableListSplitView collapsibleSubview].frame.size.width, 0)]; [tableListSplitView setCollapsibleSubviewCollapsed:YES]; + [[tableListSplitView collapsibleSubview] setAutoresizesSubviews:YES]; } else { [tableInfoCollapseButton setToolTip:NSLocalizedString(@"Hide Table Information",@"Hide Table Information")]; } |