c32d6e08d19a0b8ad7ece12aab39d0ba0be7a9e1 chmalee Mon Dec 1 16:26:27 2025 -0800 hgTracks tooltips use the data-tooltip attribute on the area element if present, falling back to the title attribute. Makes title attributes for (hopefully all) tracks with special tooltips put the tooltip string into the data-tooltip attribute instead of the title attribute, refs #35756 diff --git src/hg/hgTracks/variation.c src/hg/hgTracks/variation.c index c0c1f0472f1..1c63eb39a0a 100644 --- src/hg/hgTracks/variation.c +++ src/hg/hgTracks/variation.c @@ -1663,31 +1663,31 @@ xOff = hvGfxAdjXW(hvg, xOff, insideWidth); char *track = tg->tdb->parent ? tg->tdb->parent->track : tg->tdb->track; if (theImgBox && curImgTrack) { char link[512]; safef(link,sizeof(link),"%s?%s=%s&g=%s&i=%s",hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), track, track); char title[128]; safef(title,sizeof(title),"%s controls", tg->track); // Add map item to currnent map (TODO: pass in map) #ifdef IMAGEv2_SHORT_MAPITEMS if (xOff < insideX && xOff+insideWidth > insideX) warn("mapTrackBackground(%s) map item spanning slices. LX:%d TY:%d RX:%d BY:%d link:[%s]", tg->track,xOff, yOff, xOff+insideWidth, yOff+tg->height, link); #endif//def IMAGEv2_SHORT_MAPITEMS - imgTrackAddMapItem(curImgTrack,link,title,xOff, yOff, xOff+insideWidth, yOff+tg->height, tg->track); + imgTrackAddMapItem(curImgTrack,link,title,xOff, yOff, xOff+insideWidth, yOff+tg->height, tg->track, NULL); } else { hPrintf("height); hPrintf("HREF=\"%s?%s=%s&c=%s&g=%s&i=%s\"", hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), chromName, track, track); mapStatusMessage("%s controls", tg->track); hPrintf(">\n"); } } int ldTotalHeight(struct track *tg, enum trackVisibility vis) /* Return total height. Called before and after drawItems. * Must set height, lineHeight, heightPer */