adium-1.4 2716:338348157e70: Arbitrarily decide that the shelf i...
commits at adium.im
commits at adium.im
Sat Oct 31 20:13:49 UTC 2009
details: http://hg.adium.im/adium-1.4/rev/338348157e70
revision: 2716:338348157e70
author: Zachary West <zacw at adium.im>
date: Sat Oct 31 16:13:40 2009 -0400
Arbitrarily decide that the shelf in a shelf split view cannot go below 100px.
diffs (16 lines):
diff -r 6da617b2fa7d -r 338348157e70 Source/KNShelfSplitView.m
--- a/Source/KNShelfSplitView.m Sat Oct 31 16:02:31 2009 -0400
+++ b/Source/KNShelfSplitView.m Sat Oct 31 16:13:40 2009 -0400
@@ -231,9 +231,10 @@
// The shelf can never be completely closed. We always have at least enough to show our resize thumb, otherwise
// if the delegate responds to shelfSplitView:validateWidth:, we use that width as our minimum shelf size
- CGFloat minShelf = NSWidth(resizeThumbRect)
+ CGFloat minShelf = 100; /*NSWidth(resizeThumbRect)
+ (shouldDrawContextButton ? NSWidth(contextButtonRect) : 0)
- + (shouldDrawActionButton ? NSWidth(actionButtonRect) : 0);
+ + (shouldDrawActionButton ? NSWidth(actionButtonRect) : 0);*/
+
if( delegateHasValidateWidth ){
CGFloat requestedWidth = [delegate shelfSplitView:self validateWidth: aWidth];
if( requestedWidth > minShelf ){
More information about the commits
mailing list