Libdoc: Workaround Firefox width bug when opening keyword search.
Fixes
}
scrollToHash();
$(document).bind('keydown', handleKeyDown);
- // https://github.com/robotframework/robotframework/issues/3456
- $('.shortcuts a').width('max-content');
+ workaroundFirefoxWidthBug();
});
function parseTemplates() {
$.tmpl(name + '-template', arguments).appendTo(container);
}
+ function workaroundFirefoxWidthBug() {
+ // https://github.com/robotframework/robotframework/issues/3456
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1613163
+ $('.shortcuts a').width('max-content');
+ }
+
function handleKeyDown(event) {
event = event || window.event;
var keyCode = event.keyCode || event.which;
$('#altogether-count').hide();
if (matchCount == 0)
$('#keywords-container').find('table').empty();
+ setTimeout(workaroundFirefoxWidthBug, 100);
}
function highlightMatches(string, include) {
$('#match-count').hide();
$('#altogether-count').show();
history.replaceState && history.replaceState(null, '', location.pathname + location.hash);
+ setTimeout(workaroundFirefoxWidthBug, 100);
scrollToHash();
}
