beb98ce45ec6b8f58d0e5ef448434c57751e8c0c braney Tue Apr 26 11:04:24 2016 -0700 fix various problems with BAM coverage mode diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index cc56a48..aafd7a1 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -716,31 +716,37 @@ return answer; } int tgFixedTotalHeightOptionalOverflow(struct track *tg, enum trackVisibility vis, int lineHeight, int heightPer, boolean allowOverflow) /* Most fixed height track groups will use this to figure out the height * they use. */ { boolean doWiggle = cartOrTdbBoolean(cart, tg->tdb, "doWiggle" , FALSE); if (doWiggle) { struct wigCartOptions *wigCart = tg->wigCartData; if (tg->wigCartData == NULL) { - wigCart = wigCartOptionsNew(cart, tg->tdb, 0, NULL ); + // fake the trackDb range for this auto-wiggle + int wordCount = 3; + char *words[3]; + words[0] = "wig"; + words[1] = "0"; + words[2] = "127"; + wigCart = wigCartOptionsNew(cart, tg->tdb, wordCount, words ); tg->wigCartData = (void *) wigCart; } return wigTotalHeight(tg, vis); } int rows; double maxHeight = maximumTrackHeight(tg); int itemCount = slCount(tg->items); int maxItemsToUseOverflow = maxItemsToOverflow(tg); tg->heightPer = heightPer; tg->lineHeight = lineHeight; /* Note that the maxCount variable passed to packCountRowsOverflow() is tied to the maximum height allowed for a track and influences decisions about when to squish, dense, or overflow a track.