002e60c59c18ca1d87c6e980278a0a8a523425a4 chmalee Tue Dec 2 12:42:34 2025 -0800 Wait until DOMContentLoaded to convert title tags to mouseovers, because the browserTextSize variable will not be set yet otherwise. Make tooltip text size determination default to 12 if no saved text size or no browserTextSize available yet, refs #36754 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 56b05b693f4..f7c4799f675 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -9496,45 +9496,49 @@ puts(""); printf("", color); printf("", color); printf("", color); puts(""); } void printInfoIconColor(char *mouseover, char *color) /* Print info icon (i) with explanatory text on mouseover, with color */ { printf("", mouseover); printInfoIconSvg(color); puts(""); if (!mouseOverJsDone) { - jsInline("convertTitleTagsToMouseovers();\n"); + jsInline("document.addEventListener('DOMContentLoaded', function() {\n" + " convertTitleTagsToMouseovers();\n" + " });\n"); mouseOverJsDone = TRUE; } } void printInfoIcon(char *mouseover) /* Print info icon (i) with explanatory text on mouseover */ { // see https://www.svgrepo.com/svg/524660/info-circle printf("", mouseover); printInfoIconSvg("#1C274C"); puts(""); if (!mouseOverJsDone) { - jsInline("convertTitleTagsToMouseovers();\n"); + jsInline("document.addEventListener('DOMContentLoaded', function() {\n" + " convertTitleTagsToMouseovers();\n" + " });\n"); mouseOverJsDone = TRUE; } } void hCompositeUi(char *db, struct cart *cart, struct trackDb *tdb, char *primarySubtrack, char *fakeSubmit, char *formName) // UI for composite tracks: subtrack selection. If primarySubtrack is // non-NULL, don't allow it to be cleared and only offer subtracks // that have the same type. If fakeSubmit is non-NULL, add a hidden // var with that name so it looks like it was pressed. { bool hasSubgroups = (trackDbSetting(tdb, "subGroup1") != NULL); boolean isMatrix = dimensionsExist(tdb); boolean viewsOnly = FALSE;