diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-07-07 08:01:06 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-07-07 08:01:06 +0000 |
commit | 244cabf78191e52da7ebd644d6a06cbaaa9549fb (patch) | |
tree | c5468b47e587846342bb65943d6d95c523ec2711 | |
parent | 6119b140f51a57fcc9abcf28b14029bb97d13b48 (diff) | |
download | sequelpro-244cabf78191e52da7ebd644d6a06cbaaa9549fb.tar.gz sequelpro-244cabf78191e52da7ebd644d6a06cbaaa9549fb.tar.bz2 sequelpro-244cabf78191e52da7ebd644d6a06cbaaa9549fb.zip |
• fixed issue if connection window is opened with collapsed Table Information that the view wasn't displayed correctly after opening
- the point is here probably a bug in BWToolkit that the collapsable subview forgets its setting for "setAutoresizesSubviews:YES" after collapsing
-rw-r--r-- | Source/SPTablesList.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index e1647cf7..88803273 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -544,12 +544,22 @@ [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")]; } |