diff --git a/IPython/frontend/html/notebook/static/notebook/js/notebook.js b/IPython/frontend/html/notebook/static/notebook/js/notebook.js index 2d57a44..32cc6fd 100644 --- a/IPython/frontend/html/notebook/static/notebook/js/notebook.js +++ b/IPython/frontend/html/notebook/static/notebook/js/notebook.js @@ -88,13 +88,15 @@ var IPython = (function (IPython) { // ii) to prevent the div from scrolling up when the last cell is being // edited, but is too low on the page, which browsers will do automatically. var that = this; + this.container = $("
").addClass("container").attr("id", "notebook-container"); var end_space = $('
').addClass('end_space').height("30%"); end_space.dblclick(function (e) { if (that.read_only) return; var ncells = that.ncells(); that.insert_cell_below('code',ncells-1); }); - this.element.append(end_space); + this.element.append(this.container); + this.container.append(end_space); $('div#notebook').addClass('border-box-sizing'); }; @@ -414,7 +416,7 @@ var IPython = (function (IPython) { * @return {jQuery} A selector of all cell elements */ Notebook.prototype.get_cell_elements = function () { - return this.element.children("div.cell"); + return this.container.children("div.cell"); }; /** diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index 2718b20..9ad16f0 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -179,7 +179,7 @@ class="notebook_app"
-
+