Skip to content

Commit d71b013

Browse files
committed
Merge pull request scikit-learn#2336 from jaquesgrobler/DOC_fix_whitespace_on_userguide
DOC: fix for tons of whitespace on the user_guide page of new dev-webpage
2 parents 4644209 + 7def601 commit d71b013

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/user_guide.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
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
})
@@ -27,6 +29,8 @@
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 () {

0 commit comments

Comments
 (0)