da2e00021362a366f2f3b17b238305ca7981c7d2
tdreszer
  Thu Dec 15 12:44:34 2011 -0800
Some older composites have packable children which are seen in rightClick as unpackable.  The mixed case that gives rise to this should not be allowed now, but we can support it for those older composites.  The rule is, if any single subtrack is packable, then the whole tree is.
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 05bd400..d7a9da7 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -5286,31 +5286,31 @@
 		if (tdbIsSuper(track->tdb))
 		    hPrintf("...");
 		hPrintf("<BR> ");
 		if (track->hasUi)
 		    hPrintf("</A>");
 
 		if (hTrackOnChrom(track->tdb, chromName))
 		    {
 		    if (tdbIsSuper(track->tdb))
 			superTrackDropDown(cart, track->tdb,
 					    superTrackHasVisibleMembers(track->tdb));
 		    else
 			{
 			/* check for option of limiting visibility to one mode */
 			hTvDropDownClassVisOnly(track->track, track->visibility,
-				    track->canPack, (track->visibility == tvHide) ?
+				    rTdbTreeCanPack(track->tdb), (track->visibility == tvHide) ?
 				    "hiddenText" : "normalText",
 				    trackDbSetting(track->tdb, "onlyVisibility"));
 			}
 		    }
 		else
 		    /* If track is not on this chrom print an informational
 		    message for the user. */
 		    hPrintf("[No data-%s]", chromName);
 		controlGridEndCell(cg);
 		}
 	    /* now finish out the table */
 	    if (group->next != NULL)
 		controlGridEndRow(cg);
 	    }
 	endControlGrid(&cg);