e6e0c1bfb4c6d493ae6233e36c747cde6d8a1aa3 galt Tue Jun 17 15:31:26 2014 -0700 Fixes #13440. Make chromGraph track height for dense immitate simple bed track height initialization. diff --git src/hg/hgTracks/chromGraphTrack.c src/hg/hgTracks/chromGraphTrack.c index d4aad51..1d71225 100644 --- src/hg/hgTracks/chromGraphTrack.c +++ src/hg/hgTracks/chromGraphTrack.c @@ -225,31 +225,33 @@ int cgTotalHeight(struct track *tg, enum trackVisibility vis) /* Most fixed height track groups will use this to figure out the height * they use. */ { struct chromGraphSettings *cgs = tg->customPt; switch (vis) { case tvFull: case tvPack: tg->height = cgs->pixels; break; case tvDense: default: - tg->height = tl.fontHeight; + // imitate the initialization of simple bed heights + tg->lineHeight = tl.fontHeight + 1; + tg->height = tg->lineHeight; break; } return tg->height; } void wrapTextAndCenter(struct hvGfx *hvg, int xOff, int yOff, int width, int height, MgFont *font, Color color, char *text) /* Try and word-wrap text into box more or less. */ { struct slName *word, *wordList = slNameListFromString(text, ' '); int wordCount = slCount(wordList); int fontHeight = tl.fontHeight; int lineCount = height / fontHeight; int yUsed, y; if (lineCount > wordCount) lineCount = wordCount;