diff options
author | rowanbeentje <rowan@beent.je> | 2010-07-07 23:45:33 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-07-07 23:45:33 +0000 |
commit | 597831807944d7441a254c3475d8f957feafb5bb (patch) | |
tree | fe744d7f909fc41eac4f69c2474b5f2f18e4b887 /Source/SPCustomQuery.m | |
parent | 2a1f907c897a4aa6970ed56cfc97e50307e4ea1a (diff) | |
download | sequelpro-597831807944d7441a254c3475d8f957feafb5bb.tar.gz sequelpro-597831807944d7441a254c3475d8f957feafb5bb.tar.bz2 sequelpro-597831807944d7441a254c3475d8f957feafb5bb.zip |
- Roll back most of r2430, replacing it with an at-source fix to the manual collapse via code which was originally causing the problem. Also apply the same fix to SPCustomQuery.m.
(Note that this also identifies a probable cause of views going slightly out-of-view if views are collapsed and expanded a lot - the autoResizesSubviews property is disabled and re-enabled in BWToolKit surrounding a collapse, but this is done using a timer with the exact time interval as the corresponding collapse/expand frame resize. This sets up a race condition, where if the timer fires before the animation completes, the internal view will be slightly clipped. May require a BWToolKit fix)
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 2 |
1 files changed, 2 insertions, 0 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]; }*/ } |