13fcc22034ccaa154c07db85ce50e6ad2e843245
braney
  Wed Jul 17 15:42:49 2024 -0700
cap each track height at 31,000

diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 600223f..29eccb0 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -821,31 +821,34 @@
     maxItemsPossible = sqlUnsigned(maxItemsPossibleStr);
     }
 
 unsigned int maxItems = trackDbFloatSettingOrDefault(tg->tdb, "maxItems", maxItemsInFullTrack);
 
 if (maxItems > maxItemsPossible)
     maxItems = maxItemsPossible;
 
 return maxItems;
 }
 
 int maximumTrackHeight(struct track *tg)
 /* Return the maximum track height allowed in pixels. */
 {
 int maxItems = maximumTrackItems(tg);
-return maxItems * tl.fontHeight;
+int height = maxItems * tl.fontHeight;
+if (height > 31000)
+    height = 31000;
+return height;
 }
 
 static int maxItemsToOverflow(struct track *tg)
 /* Return the maximum number of items to allow overflow indication. */
 {
 int answer = maxItemsToUseOverflowDefault;
 char *maxItemsString = trackDbSetting(tg->tdb, "maxItemsToOverflow");
 if (maxItemsString != NULL)
     answer = sqlUnsigned(maxItemsString);
 
 return answer;
 }
 
 int tgFixedTotalHeightOptionalOverflow(struct track *tg, enum trackVisibility vis,
                                        int lineHeight, int heightPer, boolean allowOverflow)