045cce1a0d26ea1ae20c17022dde725f9a3fcbd9 tdreszer Mon Aug 8 12:54:26 2011 -0700 Fixed bug in rightClick 'view image' and now use css for sideLabel red line, to remove choppy look. diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 75d3a6c..6400df8 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -1910,62 +1910,62 @@ hPrintf("\n",trackName,imgTrack->order, (imgTrack->reorderable?" trDraggable":" nodrop nodrag"), (imgTrack->centerLabelSeen != clAlways?" clOpt":""), (imgTrack->ajaxRetrieval ?" mustRetrieve":"")); if(imgBox->showSideLabel && imgBox->plusStrand) { // button safef(name, sizeof(name), "btn_%s", trackName); hPrintf(" \n",name,(imgTrack->reorderable?" class='dragHandle'":"")); sliceAndMapDraw(imgBox,imgTrack,stButton,name,FALSE); hPrintf("\n"); // leftLabel safef(name,sizeof(name),"side_%s",trackName); if (imgTrack->reorderable) - hPrintf(" \n",name,htmlEncode(imgTrack->tdb->longLabel),newLine); + hPrintf(" \n",name,htmlEncode(imgTrack->tdb->longLabel),newLine); else - hPrintf(" \n",name); + hPrintf(" \n",name); sliceAndMapDraw(imgBox,imgTrack,stSide,name,FALSE); hPrintf("\n"); } // Main/Data image region #ifdef IMAGEv2_DRAG_SCROLL hPrintf(" \n", trackName, imgBox->width); #else///ifndef IMAGEv2_DRAG_SCROLL hPrintf(" \n", trackName, imgBox->width); #endif//ndef IMAGEv2_DRAG_SCROLL // centerLabel if(imgTrack->hasCenterLabel) { safef(name, sizeof(name), "center_%s", trackName); sliceAndMapDraw(imgBox,imgTrack,stCenter,name,TRUE); hPrintf("\n"); } // data image safef(name, sizeof(name), "data_%s", trackName); sliceAndMapDraw(imgBox,imgTrack,stData,name,(imgTrack->order>0)); hPrintf("\n"); if(imgBox->showSideLabel && !imgTrack->plusStrand) { // rightLabel safef(name, sizeof(name), "side_%s", trackName); if (imgTrack->reorderable) - hPrintf(" \n",name,htmlEncode(imgTrack->tdb->longLabel),newLine); + hPrintf(" \n",name,htmlEncode(imgTrack->tdb->longLabel),newLine); else - hPrintf(" \n",name); + hPrintf(" \n",name); sliceAndMapDraw(imgBox,imgTrack,stSide,name,FALSE); hPrintf("\n"); // button safef(name, sizeof(name), "btn_%s", trackName); hPrintf(" \n",name,(imgTrack->reorderable?" class='dragHandle'":"")); sliceAndMapDraw(imgBox,imgTrack,stButton, name,FALSE); hPrintf("\n"); } hPrintf("\n"); } hPrintf("\n"); hPrintf("\n"); // DANGER FF interprets '--' as end of comment, not '-->' jsonTdbSettingsUse(jsonTdbVars); }