62d71307f13d093ca22d7921681d72e6a037a718 lrnassar Mon Jun 24 09:07:47 2024 -0700 Moving the padding up to match the space on top of the GB image, refs #26325 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 8f45298..9e5a3d2 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9418,50 +9418,51 @@ hPrintf("<td style=\"background-color:rgb(191,210,22)\">< 0.6</td>\n"); hPrintf("<td style=\"background-color:rgb(165,224,26)\">< 0.7</td>\n"); hPrintf("<td style=\"background-color:rgb(127,233,58)\">< 0.8</td>\n"); hPrintf("<td style=\"background-color:rgb(74,240,94)\">< 0.9</td>\n"); hPrintf("<td style=\"background-color:rgb(0,244,153)\">≥ 0.9</td>\n"); hPrintf("<td style=\"color: white; background-color:rgb(160,160,160)\">No LOEUF score</td>\n"); hPrintf("</tr></table>\n"); } if (showTrackControls) { /* Display viewing options for each track. */ /* Chuck: This is going to be wrapped in a table so that * the controls don't wrap around randomly */ hPrintf("<table id='trackCtrlTable' border=0 cellspacing=1 cellpadding=1>\n"); + + // since this is all a huge table (which it shouldn't be), the only way to add whitespace between two rows is to add an empty row + // since padding and margin are not allowed on table rows. (One day, we will remove this table) + hPrintf("<tr style='height:5px'><td></td></tr>\n"); + hPrintf("<tr><td align='left'>\n"); hButtonWithOnClick("hgt.collapseGroups", "Collapse all", "Collapse all track groups", "return vis.expandAllGroups(false)"); hPrintf("</td>"); hPrintf("<td colspan='%d' class='controlButtons' align='CENTER' nowrap>\n", MAX_CONTROL_COLUMNS - 2); printShortcutButtons(cart, hasCustomTracks, revCmplDisp, multiRegionButtonTop); hPrintf("</td>\n"); hPrintf("<td align='right'>"); hButtonWithOnClick("hgt.expandGroups", "Expand all", "Expand all track groups", "return vis.expandAllGroups(true)"); hPrintf("</td></tr>"); - // since this is all a huge table (which it shouldn't be), the only way to add whitespace between two rows is to add an empty row - // since padding and margin are not allowed on table rows. (One day, we will remove this table) - hPrintf("<tr style='height:4px'><td></td></tr>\n"); - cg = startControlGrid(MAX_CONTROL_COLUMNS, "left"); struct hash *superHash = hashNew(8); for (group = groupList; group != NULL; group = group->next) { if ((group->trackList == NULL) && (group->errMessage == NULL)) continue; struct trackRef *tr; /* check if group section should be displayed */ char *otherState; char *indicator; char *indicatorImg; boolean isOpen = !isCollapsedGroup(group); collapseGroupGoodies(isOpen, TRUE, &indicatorImg,