ad3c44dc8098d672ef9a50c240f6fe6cff1baf81
kent
  Tue Apr 26 11:20:24 2011 -0700
Making it so that only visible subtracks are used in the autoScale calcs.
diff --git src/hg/hgTracks/container.c src/hg/hgTracks/container.c
index 0a16975..203a1b2 100644
--- src/hg/hgTracks/container.c
+++ src/hg/hgTracks/container.c
@@ -4,32 +4,35 @@
 
 #include "common.h"
 #include "hash.h"
 #include "linefile.h"
 #include "jksql.h"
 #include "hdb.h"
 #include "hgTracks.h"
 #include "container.h"
 
 
 void containerLoadItems(struct track *track)
 /* containerLoadItems - call load routine on all children. */
 {
 struct track *subtrack;
 for (subtrack = track->subtracks; subtrack != NULL; subtrack = subtrack->next)
+    {
+    if (isSubtrackVisible(subtrack))
     subtrack->loadItems(subtrack);
 }
+}
 
 static void containerFree(struct track *track)
 /* containerFree - call free routine on all children. */
 {
 struct track *subtrack;
 for (subtrack = track->subtracks; subtrack != NULL; subtrack = subtrack->next)
     subtrack->freeItems(subtrack);
 }
 
 void containerDrawItems(struct track *track, int seqStart, int seqEnd,
         struct hvGfx *hvg, int xOff, int yOff, int width, 
         MgFont *font, Color color, enum trackVisibility vis)
 /* Draw items in container. */
 {
 struct track *subtrack;