adium 2840:b935d043c409: Arbitrarily decide that the shelf in a ...

commits at adium.im commits at adium.im
Sat Oct 31 20:14:03 UTC 2009


details:	http://hg.adium.im/adium/rev/b935d043c409
revision:	2840:b935d043c409
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 ecb36859abb9 -r b935d043c409 Source/KNShelfSplitView.m
--- a/Source/KNShelfSplitView.m	Sat Oct 31 15:52:20 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