mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Force the Firefox to recalculate pager content size.
closes ipython/ipython#8853
This commit is contained in:
parent
932f85c759
commit
c02d91cd0e
@ -78,6 +78,11 @@ define([
|
|||||||
// This allows the pager-contents div to use percentage sizing.
|
// This allows the pager-contents div to use percentage sizing.
|
||||||
that.pager_element.height(that.pager_element.height());
|
that.pager_element.height(that.pager_element.height());
|
||||||
that._resize();
|
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());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user