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 33
33
return window . history && typeof window . history . pushState === "function" ;
34
34
}
35
35
36
- function resizeShortBlocks ( ) {
37
- if ( resizeTimeout ) {
38
- clearTimeout ( resizeTimeout ) ;
39
- }
40
- resizeTimeout = setTimeout ( function ( ) {
41
- var contentWidth = $ ( '.content' ) . width ( ) ;
42
- $ ( '.docblock.short' ) . width ( function ( ) {
43
- return contentWidth - 40 - $ ( this ) . prev ( ) . width ( ) ;
44
- } ) . addClass ( 'nowrap' ) ;
45
- $ ( '.summary-column' ) . width ( function ( ) {
46
- return contentWidth - 40 - $ ( this ) . prev ( ) . width ( ) ;
47
- } )
48
- } , 150 ) ;
49
- }
50
- resizeShortBlocks ( ) ;
51
- $ ( window ) . on ( 'resize' , resizeShortBlocks ) ;
52
-
53
36
function highlightSourceLines ( ev ) {
54
37
var i , from , to , match = window . location . hash . match ( / ^ # ? ( \d + ) (?: - ( \d + ) ) ? $ / ) ;
55
38
if ( match ) {
You can’t perform that action at this time.
0 commit comments