dd8d4476a691b63b817f4ca86483e9ec46c43859
max
  Thu Sep 17 02:26:31 2026 -0700
hgTrackUi: fix ineffective spacing after superTrack hide/show-all buttons, refs #38281

#Preview2 week - bugs introduced now will need a build patch to fix
margin-bottom on a TD has no effect (table cells don't honor margins), so no
space actually appeared below the button row. Use padding-bottom:8px instead.

diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index 27666198284..566c540ee23 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -2817,31 +2817,31 @@
 void superTrackUi(struct trackDb *superTdb, struct trackDb *tdbList)
 /* List tracks in this collection, with visibility controls and UI links */
 {
 jsIncludeFile("hui.js",NULL);
 printf("<p style='margin-top:3px; margin-bottom:3px'>");
 printf("Tracks that are part of this container are listed below. Use the buttons below to set their visibility. The grey button shows each track's current visibility.</p>");
 printf("\n<TABLE id='superTrackTable' CELLPADDING=2>");
 tdbRefSortPrioritiesFromCart(cart, &superTdb->children);
 struct slRef *childRef;
 char javascript[1024];
 for (childRef = superTdb->children; childRef != NULL; childRef = childRef->next)
     {
     struct trackDb *tdb = childRef->val;
     if (childRef == superTdb->children) // first time through
         {
-        printf("<TR style='border-bottom: none'><TD style='margin-bottom:10px' NOWRAP colspan=2>\n");
+        printf("<TR style='border-bottom: none'><TD style='padding-bottom:8px' NOWRAP colspan=2>\n");
 
         // Hide/show everything with a single click, the two most common cases
         printf("<button type='button' id='superVizHideAllButton'>Hide all tracks</button>\n");
 	jsOnEventById("click", "superVizHideAllButton", "superUiSetAllTracks('hide')");
 
         printf("<button type='button' style='margin-left: 10px' id='superVizShowAllButton'>"
                "Show all tracks</button>\n");
 	jsOnEventById("click", "superVizShowAllButton", "superUiSetAllTracks('pack')");
 
         printf("<span style='margin-left: 20px'><b>Apply visibility: </b></span>\n");
         printf("<select id='superSubViz' class='normalText'>\n");
         printf("<option value='hide'>Hide</option>");
         printf("<option value='dense'>Dense</option>");
         printf("<option value='squish'>Squish</option>");
         printf("<option value='pack' selected='selected'>Pack</option>");