From c43551eadedef58e9cfc44366e1fb5263ab6c57d Mon Sep 17 00:00:00 2001 From: "pinkerton%aol.net" Date: Wed, 11 Feb 2004 17:52:21 +0000 Subject: [PATCH] shift down text part of cell by 1px to get better centering w/in cell. --- camino/src/extensions/ImageAndTextCell.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/camino/src/extensions/ImageAndTextCell.m b/camino/src/extensions/ImageAndTextCell.m index fc45c01d5edb..91a0d9ec7f31 100644 --- a/camino/src/extensions/ImageAndTextCell.m +++ b/camino/src/extensions/ImageAndTextCell.m @@ -115,6 +115,11 @@ [image compositeToPoint:imageFrame.origin operation:NSCompositeSourceOver]; } + // shift down cellFrame by 1px to better align w/in rect. For some reason the default + // doesn't center correctly. + cellFrame.origin.y++; + cellFrame.size.height--; + [super drawWithFrame:cellFrame inView:controlView]; }