f3a764b6e4ef3322a64b3989e9d0733fff73c311
max
  Thu Aug 14 03:04:28 2025 -0700
giving subtrack configure div more width, refs #36227

diff --git src/hg/js/subCfg.js src/hg/js/subCfg.js
index 1d6ab161ef5..fa3255b46ca 100644
--- src/hg/js/subCfg.js
+++ src/hg/js/subCfg.js
@@ -600,31 +600,31 @@
             if (this.name) { // The filter("[name]") above didn't do it!
                 if (this.type !== 'hidden') {
                     subCfg.inheritSetting(this,false); // updates any values that have been changed
                     var suffix = subCfg.objSuffixGet(this);                         // on this page
                     if (suffix && suffix.length > 0)
                         $(this).change( subCfg.markChange );
                     else
                         warn("DEBUG: couldn't find suffix for subtrack control: "+this.name);
                 }
             }
         });
         // finally show
         $(cfg).show();
         // Tricks to get this in the size and position I want
         $(cfg).css({ position: 'absolute'});
-        var maxWidth = $(cfg).parents('table').first()[0].clientWidth;
+        var maxWidth = $("[name='mainForm']")[0].clientWidth;
         var schemaLink = $(cfg).parents('td').first().next();
         var schemaLinkWidth = schemaLink !== null ? schemaLink[0].clientWidth : 0;
         var shiftLeft = -1;
         if (subCfg.visIndependent) {
             shiftLeft *= ($(cfg).position().left - 125);
             var subVis = normed($('div#' + subCfg.currentSub+'_faux'));
             if (subVis)
                 subCfg.replaceWithVis(subVis,subCfg.currentSub,false);
         }
         else
             shiftLeft *= ($(cfg).position().left - 40);
         // width: set to the config box size - (but shiftLeft is negative so +) the left shift
         // margin-right: the negative number forces the schema links to stay near where they
         //     are when the sub-config isn't open
         $(cfg).css({ width: (maxWidth + shiftLeft) +'px',position: 'relative', left: shiftLeft + 'px', "margin-right": shiftLeft + 'px'});