mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Notebook isolated content: fix firefox extra-space issue
In Firefox, if the iframe initial height is set to 0, the reported scrollHeight is too large. Workaround: set the initial height to 1.
This commit is contained in:
parent
a8e39d6acc
commit
c72d4fead0
@ -335,6 +335,7 @@ var IPython = (function (IPython) {
|
||||
// Create an iframe to isolate the subarea from the rest of the
|
||||
// document
|
||||
var iframe = $('<iframe/>');
|
||||
iframe.attr('height', 1);
|
||||
iframe.attr('frameborder', 0);
|
||||
iframe.attr('scrolling', 'auto');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user