]> git.lizzy.rs Git - rust.git/commitdiff
Remove unneeded explicit width from search results
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 31 Jan 2021 12:13:52 +0000 (13:13 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 31 Jan 2021 12:42:35 +0000 (13:42 +0100)
src/librustdoc/html/static/main.js

index 53f0831852456bfc753056ec27c14598c6812974..45ab76f1f9f99a04368506118daab19cb3fd9e05 100644 (file)
@@ -1688,15 +1688,6 @@ function defocusSearchBar() {
 
             search.innerHTML = output;
             showSearchResults(search);
-            var tds = search.getElementsByTagName("td");
-            var td_width = 0;
-            if (tds.length > 0) {
-                td_width = tds[0].offsetWidth;
-            }
-            var width = search.offsetWidth - 40 - td_width;
-            onEachLazy(search.getElementsByClassName("desc"), function(e) {
-                e.style.width = width + "px";
-            });
             initSearchNav();
             var elems = document.getElementById("titles").childNodes;
             elems[0].onclick = function() { printTab(0); };