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 3333 return window . history && typeof window . history . pushState === "function" ;
3434 }
3535
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-
5336 function highlightSourceLines ( ev ) {
5437 var i , from , to , match = window . location . hash . match ( / ^ # ? ( \d + ) (?: - ( \d + ) ) ? $ / ) ;
5538 if ( match ) {
You can’t perform that action at this time.
0 commit comments