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/js/hui.js src/hg/js/hui.js index d83e9d5..5c8cea6 100644 --- src/hg/js/hui.js +++ src/hg/js/hui.js @@ -1017,49 +1017,45 @@ } else if($(obj).attr('selectedIndex') == 0) $(obj).attr('size',1); return true; } function navigationLinksSetup() { // Navigation links let you jump to places in the document // If they exist, then they need to be well placed to fit window dimensions // Put navigation links in top corner var navDown = $("#navDown"); if(navDown != undefined && navDown.length > 0) { navDown = navDown[0]; var winWidth = ($(window).width() - 30) + "px"; // Room for borders $('.windowSize').css({maxWidth: winWidth,width: winWidth}); - var sectTtl = $("#sectTtl").parent("td"); + var sectTtl = $("#sectTtl"); if(sectTtl != undefined && sectTtl.length > 0) { - sectTtl = sectTtl[0]; $(sectTtl).css({clear: 'none'}); - if($.browser.msie) $(sectTtl).prepend($(navDown)); - else - $(sectTtl).append($(navDown)); } - $(navDown).css({float:'right'}) + $(navDown).css({'float':'right', 'font-weight':'normal'}); $(navDown).show(); } // Decide if top links are needed var navUp = $('span.navUp'); if(navUp != undefined && navUp.length > 0) { $(navUp).each(function(i) { var offset = $(this).parent().offset(); - if(offset.top > $(window).height()) { + if(offset.top > ($(window).height()*(2/3))) { $(this).show(); } }); } } function tableSortAtButtonPress(anchor,tagId) { // Special ONLY for hgTrackUi sorting. Others use utils.js::tableSortOnButtonPress() var table = $( anchor ).parents("table.sortable"); if (table) { subtrackCfgHideAll(table); waitOnFunction( _tableSortOnButtonPressEncapsulated, anchor, tagId); } return false; // called by link so return false means don't try to go anywhere }