ec4568d14f455627aa84b614bafb82b03a2edc8a tdreszer Fri May 6 14:35:35 2011 -0700 Fixes to spacing issues on hgTrackUi and hgFileUi where navlinks and description page resulted in extra lines. Created subheadingBar div to replace one of the many nested tables and use CSS. diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index d2179a2..fb6c635 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -2840,57 +2840,56 @@ puts("</FORM>\n"); if (ct->bbiFile) { time_t timep = bbiUpdateTime(ct->bbiFile); printBbiUpdateTime(&timep); } else printUpdateTime(CUSTOM_TRASH, ct->tdb, ct); } if (!ct) { /* Print data version trackDB setting, if any */ char *version = trackDbSetting(tdb, "dataVersion"); if (version) - printf("<B>Data version:</B> %s<BR>\n", version); + printf("<div style='height:.6em;'></div><B>Data version:</B> %s\n", version); /* Print lift information from trackDb, if any */ trackDbPrintOrigAssembly(tdb, database); printUpdateTime(database, tdb, NULL); } if (tdb->html != NULL && tdb->html[0] != 0) { - htmlHorizontalLine(); - puts("<A NAME='TRACK_HTML'></A>"); - - // include anchor for Description link char *browserVersion; if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8') - printf("<table class='windowSize'><tr valign='top'><td>"); - else - printf("<table class='windowSize' style='position:relative; top:-1em;'><tr valign='top'><td>"); + htmlHorizontalLine(); + else // Move line down, since <H2>Description (in ->html) is proceded by too much space + printf("<span style='position:relative; top:1em;'><HR ALIGN='bottom'></span>"); + + printf("<table class='windowSize'><tr valign='top'><td rowspan=2>"); + puts("<A NAME='TRACK_HTML'></A>"); // include anchor for Description link // Add pennantIcon printPennantIconNote(tdb); puts(tdb->html); - printf("</td><td><div style='height:.7em;'></div>"); + printf("</td><td nowrap><div style='height:.8em;'></div>"); // positions top link below line makeTopLink(tdb); - printf(" </td></tr><tr valign='bottom'><td colspan=2>"); + printf(" </td></tr><tr valign='bottom'><td nowrap>"); makeTopLink(tdb); printf(" </td></tr></table>"); } } /* void trackUi(struct trackDb *tdb) */ struct trackDb *trackDbForPseudoTrack(char *tableName, char *shortLabel, char *longLabel, int defaultVis, boolean canPack) /* Create trackDb for a track without a corresponding table. */ { struct trackDb *tdb; AllocVar(tdb); tdb->track = tableName; tdb->table = tableName; tdb->shortLabel = shortLabel;