b33b564829f71c887928de8614515059955e20f5 tdreszer Thu Feb 6 12:14:59 2014 -0800 Fixed autocomplete dialog falling beneath the data images in some cases. Redmine #12589 diff --git src/hg/js/autocomplete.js src/hg/js/autocomplete.js index 590a00a..44e6075 100644 --- src/hg/js/autocomplete.js +++ src/hg/js/autocomplete.js @@ -71,31 +71,31 @@ $('#positionInput').Watermark(waterMark, '#686868'); if(assemblySupportsGeneSuggest) { $('#positionInput').autocomplete({ delay: 500, minLength: 2, source: this.ajaxGet(db), open: function(event, ui) { var pos = $(this).offset().top + $(this).height(); if (!isNaN(pos)) { var maxHeight = $(window).height() - pos - 30; // take off a little more because IE needs it var auto = $('.ui-autocomplete'); var curHeight = $(auto).children().length * 21; if (curHeight > maxHeight) $(auto).css({maxHeight: maxHeight+'px', overflow:'scroll', zIndex: 12}); else - $(auto).css({maxHeight: 'none', overflow:'hidden'}); + $(auto).css({maxHeight: 'none', overflow:'hidden', zIndex: 12}); } }, select: function (event, ui) { selectCallback(ui.item); lastSelected = ui.item.value; suggestBox.updateFindMatches(ui.item.internalId); // jQuery('body').css('cursor', 'wait'); // document.TrackHeaderForm.submit(); } }); } // I want to set focus to the suggest element, but unforunately that prevents PgUp/PgDn from // working, which is a major annoyance. // $('#positionInput').focus();