46fa9fa9710504c701e286ed9908aea277304729 galt Fri Feb 21 16:53:34 2025 -0800 hgTracks imageV2 Only do it for the case where we are drawing center labels. fixes #31541 diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index a17475109bc..123a3669980 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -1938,31 +1938,31 @@ if (slice->parentImg) { // Adjustment for centerLabel Conditional if (imgTrack->centerLabelSeen == clNotSeen && (sliceType == stSide || sliceType == stButton)) { struct imgSlice *centerSlice = imgTrackSliceGetByType(imgTrack,stCenter); if (centerSlice != NULL) { height -= centerSlice->height; offsetY += centerSlice->height; } } // this makes it look like view image theImgBox==NULL - if ((slice->type==stData) && !sameString(name,"side_ruler")) // data not high enough by 1 pixel GALT + if ((slice->type==stData) && !sameString(name,"side_ruler") && cartUsualBoolean(cart, "centerLabels", TRUE)) // data not high enough by 1 pixel GALT height += 1; // Adjustment for portal if (imgBox->showPortal && imgBox->basesPerPixel > 0 && (sliceType==stData || sliceType==stCenter)) { offsetX += (imgBox->portalStart - imgBox->chromStart) / imgBox->basesPerPixel; width=imgBox->portalWidth; } hPrintf("