[Adium-devl] Further Tab Sizing Issues

David Smith catfish.man at gmail.com
Sat Aug 25 08:03:21 UTC 2007


	Someone on irc pointed out that label alignment still looks off when  
using certain status icon packs. I believe I've tracked it down to an  
incomplete fix from earlier. As it stands now, the code does this:

		resultWidth += MAX([_closeButton size].width, NSWidth([self  
iconRectForTabCell:cell])) + Adium_CellPadding;

		For icons smaller than the close button, this results in something  
like this:

		[padding] [whitespace] [icon] [whitespace] [label] [padding]

		Naturally that leads to the label looking pushed to the right. I  
propose that for icons smaller than the close button, we instead add  
(close button width - icon width) / 2 to the padding. This will keep  
things balanced looking, at the slight cost of a few extra pixels of  
padding. Thoughts?


									David




More information about the devel mailing list