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:
Pablo de Oliveira 2013-10-10 10:04:37 +02:00
parent a8e39d6acc
commit c72d4fead0

View File

@ -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');