3351b7938091d8bccaea76ef006d729f5e169a4f
braney
  Tue Sep 24 17:23:10 2024 -0700
if we go over the 32k PNG size limit, put all the tracks that can wiggle
into wiggle mode and try again

diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 39c2763..1af6c89 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -11507,30 +11507,35 @@
         ct++;
 return ct;
 }
 
 static boolean canWiggle(struct track *tg)
 /* Is this a track type that can wiggle. */
 {
 return tg->isBigBed || startsWith("vcfTabix", tg->tdb->type);
 }
 
 enum trackVisibility limitVisibility(struct track *tg)
 /* Return default visibility limited by number of items and
  * by parent visibility if part of a coposite track.
  * This also sets tg->height. */
 {
+if (forceWiggle && canWiggle(tg))
+    {
+    tg->limitWiggle = TRUE;
+    }
+
 if (!tg->limitedVisSet)
     {
     tg->limitedVisSet = TRUE;  // Prevents recursive loop!
 
     // optional setting to draw labels onto the feature boxes, not next to them
     char *setting = cartOrTdbString(cart, tg->tdb, "labelOnFeature", NULL);
     if (setting)
         {
         if (sameString(setting, "on") || sameString(setting, "true"))
             tg->drawLabelInBox = TRUE;
         else if (sameString(setting, "noDense"))
             {
             tg->drawLabelInBox = TRUE;
             tg->drawLabelInBoxNotDense = TRUE;
             }