abe71d11dfe601a7110cfe32cbc90606b332bc2e braney Sat Aug 17 16:10:17 2024 -0700 if limiting visibility to density mode, set the trackDb type to "wig" so the javascript understands what's going on. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 14fe5b4..39c2763 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -11551,30 +11551,31 @@ int subCnt = subtrackCount(tg->subtracks); maxHeight = maxHeight * max(subCnt,1); //if (subCnt > 4) // maxHeight *= 2; // NOTE: Large composites should suffer an additional restriction. if (!tg->syncChildVisToSelf) { for (subtrack = tg->subtracks; subtrack != NULL; subtrack = subtrack->next) limitVisibility(subtrack); } } if (canWiggle(tg)) // if this is a track type that can wiggle, we want to go straight to that rather than reduce visibility { if ((h = tg->totalHeight(tg, vis)) > maxHeight && vis != tvDense) { tg->limitWiggle = TRUE; + tg->tdb->type = cloneString("wig"); } if ( tg->limitWiggle) // auto-density coverage is alway tvFull { if (tg->visibility == tvDense) tg->visibility = tg->limitedVis = tvDense; else tg->visibility = tg->limitedVis = tvFull; } else tg->limitedVis = vis; } else { while ((h = tg->totalHeight(tg, vis)) > maxHeight && vis != tvDense) {