afdb90131d5c0ea91574e4fb65fc7983e6b5551f
tdreszer
  Mon Feb 6 15:29:14 2012 -0800
Fix some edge cases when superChild composite is hidden by its superParent.  Redmine 6622
diff --git src/hg/js/hui.js src/hg/js/hui.js
index 41c02af..2fa403f 100644
--- src/hg/js/hui.js
+++ src/hg/js/hui.js
@@ -88,30 +88,34 @@
 
 function matSelectViewForSubTracks(obj,view)
 {
     waitOnFunction( _matSelectViewForSubTracks, obj,view);
 }
 
 function exposeAll()
 {
     // Make main display dropdown show full if currently hide
     var visDD = normed($("select.visDD")); // limit to hidden
     if (visDD != undefined) {
         if ($(visDD).attr('selectedIndex') == 0) {
             $(visDD).attr('selectedIndex',$(visDD).children('option').length - 1);
 	        $(visDD).change();// trigger on change code, which may trigger supertrack reshaping
         }                         // and effecting inherited subtrack vis
+
+        // If superChild and hidden by supertrack, wierd things go on unless we trigger reshape
+        if ($(visDD).hasClass('superChild'))
+            visTriggersHiddenSelect(visDD);
     }
 }
 
 function matSubCbClick(subCB)
 {
 // subCB:onclick  When a subtrack checkbox is clicked, it may result in
 // Clicking/unclicking the corresponding matrix CB.  Also the
 // subtrack may be hidden as a result.
 
     // NOTE: if "subCfg" then 'change' event will update it
     if (isFauxDisabled(subCB,false)) { // disabled subCB is still clickable when "subCfg"
         subCB.checked = true;
         fauxDisable(subCB,false,""); // enable and get rid of message
     }
     matSubCBsetShadow(subCB,false);