From 597831807944d7441a254c3475d8f957feafb5bb Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 7 Jul 2010 23:45:33 +0000 Subject: - 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) --- Source/SPCustomQuery.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/SPCustomQuery.m') 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]; }*/ } -- cgit v1.2.3