src/hg/hgTracks/hgTracks.c 1.1608

1.1608 2009/11/19 18:05:09 tdreszer
Fix bug Rachel found with imageV2 framework, where BLAT sequence track was being forced to the bottom.
Index: src/hg/hgTracks/hgTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.c,v
retrieving revision 1.1607
retrieving revision 1.1608
diff -b -B -U 4 -r1.1607 -r1.1608
--- src/hg/hgTracks/hgTracks.c	13 Nov 2009 00:17:58 -0000	1.1607
+++ src/hg/hgTracks/hgTracks.c	19 Nov 2009 18:05:09 -0000	1.1608
@@ -1793,17 +1793,20 @@
                             h, track->hasUi);
             else
                 drawBlueButtonBox(hvg, trackTabX, yStart, trackTabWidth,
                             h, track->hasUi);
-            if (track->hasUi)
-                {
                 if(theImgBox)
                     {
                     // Mini-buttons (side label slice) for tracks
                     sliceHeight      = h;
                     sliceOffsetY     = yStart;
                     curImgTrack = imgBoxTrackFindOrAdd(theImgBox,track->tdb,NULL,track->limitedVis,isWithCenterLabels(track),IMG_ANYORDER);
                     curSlice    = imgTrackSliceUpdateOrAdd(curImgTrack,isButton,theOneImg,NULL,sliceWidth[isButton],sliceHeight,sliceOffsetX[isButton],sliceOffsetY);
+                }
+            if (track->hasUi)
+                {
+                if(theImgBox)
+                    {
                     curMap      = sliceMapFindOrStart(curSlice,track->tdb->tableName,NULL); // No common linkRoot
                     }
                 mapBoxTrackUi(hvg, trackTabX, yStart, trackTabWidth, h,
 			      track->mapName, track->shortLabel);