src/hg/hgTracks/hgTracks.c 1.1583

1.1583 2009/07/10 20:10:30 tdreszer
Fixed bug in leftLabel size under imageV2 logic
Index: src/hg/hgTracks/hgTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.c,v
retrieving revision 1.1582
retrieving revision 1.1583
diff -b -B -U 4 -r1.1582 -r1.1583
--- src/hg/hgTracks/hgTracks.c	10 Jul 2009 19:48:17 -0000	1.1582
+++ src/hg/hgTracks/hgTracks.c	10 Jul 2009 20:10:30 -0000	1.1583
@@ -3849,9 +3849,9 @@
 // Start an imagebox (global for now to avoid huge rewrite of hgTracks)
 // Set up imgBox dimensions
 int sideSliceWidth  = 0;   // Just being explicit
 if (withLeftLabels)
-    sideSliceWidth   = leftLabelWidth + 2;
+    sideSliceWidth   = (insideX - gfxBorder*3) + 2;
 theImgBox = imgBoxStart(database,chromName,winStart,winEnd,(!revCmplDisp),sideSliceWidth,tl.picWidth);
 #ifdef IMAGEv2_USE_PORTAL
 // Define a portal with a default expansion size, then set the global dimensions to the full image size
 if(imgBoxPortalDefine(theImgBox,&winStart,&winEnd,&(tl.picWidth),0))