d1817eccaf53db9c4f05c424700693ad08470d43 tdreszer Wed Aug 24 17:16:32 2011 -0700 If items are only one pixel in full, the map item is so small that it isn't written. This is a bug in dragScrioll and is now fixed. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 4ffd0bb..ff2415e 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -2948,30 +2948,35 @@ geneMapBoxX += buttonW; geneMapBoxW -= 2 * buttonW; } else if (lButton) { geneMapBoxX += buttonW; geneMapBoxW -= buttonW; } else if (rButton) geneMapBoxW -= buttonW; #ifdef IMAGEv2_SHORT_MAPITEMS if(x2 > 0) { geneMapBoxX = textX; geneMapBoxW = x2-geneMapBoxX; + if (geneMapBoxW < 5) // Full with short labels but don't make tiny map items + { + geneMapBoxX -= (5 - geneMapBoxW)/2; + geneMapBoxW = 5; + } } #endif//def IMAGEv2_SHORT_MAPITEMS tg->mapItem(tg, hvg, item, tg->itemName(tg, item), tg->mapItemName(tg, item), s, e, geneMapBoxX, y, geneMapBoxW, heightPer); } } static void genericDrawOverflowItem(struct track *tg, struct spaceNode *sn, struct hvGfx *hvg, int xOff, int yOff, int width, MgFont *font, Color color, double scale, int overflowRow, boolean firstOverflow) /* genericDrawItems logic for drawing an overflow row */ { /* change some state to paint it in the "overflow" row. */ enum trackVisibility origVis = tg->limitedVis;