From 06667e1d686d60d7268ad4ec96ddbcd5ab5e3518 2015-01-15 08:00:27 From: Matthias Bussonnier Date: 2015-01-15 08:00:27 Subject: [PATCH] Merge pull request #7470 from minrk/pager-straight-down hide pager straight down --- diff --git a/IPython/html/static/notebook/js/pager.js b/IPython/html/static/notebook/js/pager.js index a2f6ab2..881d575 100644 --- a/IPython/html/static/notebook/js/pager.js +++ b/IPython/html/static/notebook/js/pager.js @@ -57,8 +57,13 @@ define([ this.pager_element.bind('collapse_pager', function (event, extrap) { // Animate hiding of the pager. var time = (extrap && extrap.duration) ? extrap.duration : 'fast'; - that.pager_element.hide(time, function() { - $('.end_space').css('height', that._default_end_space); + that.pager_element.animate({ + height: 'toggle' + }, { + duration: time, + done: function() { + $('.end_space').css('height', that._default_end_space); + } }); });