adium 2558:037f9ce70de2: Don't let the contact list's outline vi...
commits at adium.im
commits at adium.im
Mon Jul 27 21:43:37 UTC 2009
details: http://hg.adium.im/adium/rev/037f9ce70de2
revision: 2558:037f9ce70de2
author: Evan Schoenberg
date: Mon Jul 27 16:46:17 2009 -0500
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
diffs (17 lines):
diff -r 77528d1c767b -r 037f9ce70de2 Source/AIListWindowController.m
--- a/Source/AIListWindowController.m Mon Jul 27 16:27:22 2009 -0500
+++ b/Source/AIListWindowController.m Mon Jul 27 16:46:17 2009 -0500
@@ -1536,6 +1536,13 @@
targetFrame.size.height = NSHeight(targetFrame) - NSHeight([filterBarView bounds]);
}
+
+ /* Setting a frame's height to 0 can permanently destroy its ability to display properly.
+ * This is the case with an NSOutlineView. If our contact list was invisibile (because no contacts
+ * were visible), create a 1 pixel border rather than traumatizing it for life.
+ */
+ if (targetFrame.size.height == 0)
+ targetFrame.size.height = 1;
// Filter bar resizing
NSRect barTargetFrame = contactListView.enclosingScrollView.frame;
More information about the commits
mailing list