File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1717 if ($ (this ).children (' ul' ).length > 0 ) {
1818 $ (this ).css (' list-style-image' ,
1919 (! $ (this ).children (' ul' ).is (' :hidden' )) ? ' url(http://github.com/_static/plusBoxHighlight.png)' : ' url(http://github.com/_static/minBoxHighlight.png)' );
20- $ (this ).children (' ul' ).toggle (" slow " );
20+ $ (this ).children (' ul' ).toggle ();
2121 }
22+ // Update the sidebar height when expanding/collapsing toctree elemements
23+ $ (' #sidebarbutton' ).animate ({height : $ (' .toctree-wrapper' ).height () + 50 }, 0 );
2224 return true ; // Makes links clickable
2325 }
2426 })
2729 .children (' ul' ).hide ();
2830 $ (' ul li ul li:not(:has(ul))' ).css ({cursor: ' default' , ' list-style-image' : ' url(http://github.com/_static/noneBox.png)' });
2931 $ (' ul li ul' ).css (' margin-left' , ' 0px' );
32+ // Initialise the sidebar button with the collapsing toctree
33+ $ (' #sidebarbutton' ).animate ({height : $ (' .toctree-wrapper' ).height () + 50 }, 0 );
3034 $ (' .toctree-l3' ).css ({cursor: ' default' , ' list-style-image' : ' url(http://github.com/_static/noneBox.png)' });
3135 $ (' .toctree-l2' ).hover (
3236 function () {
You can’t perform that action at this time.
0 commit comments