From c02d91cd0e8807a0b90c96ba982916d6f8adff3d Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Thu, 8 Oct 2015 09:32:59 -0700 Subject: [PATCH] Force the Firefox to recalculate pager content size. closes ipython/ipython#8853 --- notebook/static/notebook/js/pager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notebook/static/notebook/js/pager.js b/notebook/static/notebook/js/pager.js index 119612f84..a6842ab82 100644 --- a/notebook/static/notebook/js/pager.js +++ b/notebook/static/notebook/js/pager.js @@ -78,6 +78,11 @@ define([ // This allows the pager-contents div to use percentage sizing. that.pager_element.height(that.pager_element.height()); that._resize(); + + // Fixes: ipython/ipython#8853 + // Horrible hack that forces firefox to recalculate the content + // size so the scrollbars get rendered. + that.pager_element.html(that.pager_element.html()); }); });