about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-31 13:13:52 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-01-31 13:42:35 +0100
commit0a93cb36be52c1f7fd43e78ab8689b2ee45c695f (patch)
tree2a8995d262005429e167c52e44902007f53e06df
parenta2f8f6281817d430e20726128b739d3c6708561c (diff)
downloadrust-0a93cb36be52c1f7fd43e78ab8689b2ee45c695f.tar.gz
rust-0a93cb36be52c1f7fd43e78ab8689b2ee45c695f.zip
Remove unneeded explicit width from search results
-rw-r--r--src/librustdoc/html/static/main.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 53f08318524..45ab76f1f9f 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -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); };