Don't let the contact list's outline view go to 0 pixels high when showing the filter bar. This fixes a filter bar animation occurring before the contact list is populated. Fixes #12214
1.1 --- a/Source/AIListWindowController.m Mon Jul 27 16:27:22 2009 -0500
1.2 +++ b/Source/AIListWindowController.m Mon Jul 27 16:46:17 2009 -0500
1.3 @@ -1536,6 +1536,13 @@
1.4
1.5 targetFrame.size.height = NSHeight(targetFrame) - NSHeight([filterBarView bounds]);
1.6 }
1.7 +
1.8 + /* Setting a frame's height to 0 can permanently destroy its ability to display properly.
1.9 + * This is the case with an NSOutlineView. If our contact list was invisibile (because no contacts
1.10 + * were visible), create a 1 pixel border rather than traumatizing it for life.
1.11 + */
1.12 + if (targetFrame.size.height == 0)
1.13 + targetFrame.size.height = 1;
1.14
1.15 // Filter bar resizing
1.16 NSRect barTargetFrame = contactListView.enclosingScrollView.frame;