fa672f33567a63c0c9935bf273c05f6b66072d70 tdreszer Mon May 9 17:10:23 2011 -0700 Fixed SNP expandable checkbox groups title from jumping right whehn a group is expanded. diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index 20b0033..48e1784 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -464,25 +464,25 @@ char collapseGroupVar[512]; safef(collapseGroupVar, sizeof(collapseGroupVar), "%s.section_%s_close", track, section); boolean isOpen = !cartUsualBoolean(cart, collapseGroupVar, !isOpenDefault); printf("<TR><TD width='20'><input type='hidden' name=\"%s\" id=\"%s\" value=\"%s\">\n", collapseGroupVar, collapseGroupVar, isOpen ? "0" : "1"); printf("<A HREF=\"%s?%s&%s=%s#%sGroup\" class='bigBlue'>\n", cgiScriptName(), cartSidUrlString(cart), collapseGroupVar, (isOpen ? "1" : "0"), section); char *buttonImage = (isOpen ? "../images/remove_sm.gif" : "../images/add_sm.gif"); printf("<IMG height='18' width='18' " "onclick=\"return setTableRowVisibility(this, '%s', '%s.section', 'section', true);\" " "id=\"%s_button\" src=\"%s\" alt=\"%s\" title='%s this section' class='bigBlue'>" "</A></TD>\n", section, track, section, buttonImage, (isOpen ? "-" : "+"), (isOpen ? "Collapse": "Expand")); -printf("<TD class='bigBlue' style='font-size:large;'><B> %s</B></TD></TR>\n", sectionTitle); +printf("<TD class='bigBlue' style='font-size:large; text-align:left; width:100%%'><B> %s</B></TD></TR>\n", sectionTitle); printf("<TR %sid='%s-%d'><TD colspan=2>", isOpen ? "" : "style='display: none' ", section, 1); } void jsEndCollapsibleSection() /* End the collapsible <TR id=...>. */ { puts("</TD></TR>"); }