src/hg/hgTracks/simpleTracks.c 1.147

1.147 2010/06/04 21:37:53 kent
Adding a few pixels to left label area so that it really does fit the number of characters you select.
Index: src/hg/hgTracks/simpleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/simpleTracks.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -b -B -U 4 -r1.146 -r1.147
--- src/hg/hgTracks/simpleTracks.c	4 Jun 2010 18:08:14 -0000	1.146
+++ src/hg/hgTracks/simpleTracks.c	4 Jun 2010 21:37:53 -0000	1.147
@@ -226,9 +226,9 @@
 // label width, but don't exceed 1/2 of image
 leftLabelWidthChars = cartUsualInt(cart, "hgt.labelWidth", leftLabelWidthDefaultChars);
 if (leftLabelWidthChars < 2)
     leftLabelWidthChars = leftLabelWidthDefaultChars;
-tl.leftLabelWidth = leftLabelWidthChars*tl.nWidth + trackTabWidth;
+tl.leftLabelWidth = leftLabelWidthChars*tl.nWidth + trackTabWidth + 3;
 int maxLabelWidth = 0.5*tl.picWidth;
 if (tl.leftLabelWidth  > maxLabelWidth)
     {
     // overflow, force to 1/2 width