File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 54
54
return window . history && typeof window . history . pushState === "function" ;
55
55
}
56
56
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
-
74
57
function highlightSourceLines ( ev ) {
75
58
var i , from , to , match = window . location . hash . match ( / ^ # ? ( \d + ) (?: - ( \d + ) ) ? $ / ) ;
76
59
if ( match ) {
You can’t perform that action at this time.
0 commit comments