Skip to content

Commit 21b024a

Browse files
committed
Rollup merge of rust-lang#22769 - :rustdocfix, r=brson
Fixes rust-lang#22325
2 parents 0a74387 + 1275c11 commit 21b024a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/librustdoc/html/static/main.js

-17
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,6 @@
5454
return window.history && typeof window.history.pushState === "function";
5555
}
5656

57-
function resizeShortBlocks() {
58-
if (resizeTimeout) {
59-
clearTimeout(resizeTimeout);
60-
}
61-
resizeTimeout = setTimeout(function() {
62-
var contentWidth = $('.content').width();
63-
$('.docblock.short').width(function() {
64-
return contentWidth - 40 - $(this).prev().width();
65-
}).addClass('nowrap');
66-
$('.summary-column').width(function() {
67-
return contentWidth - 40 - $(this).prev().width();
68-
})
69-
}, 150);
70-
}
71-
resizeShortBlocks();
72-
$(window).on('resize', resizeShortBlocks);
73-
7457
function highlightSourceLines(ev) {
7558
var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);
7659
if (match) {

0 commit comments

Comments
 (0)