##// END OF EJS Templates
only put the notebook in a container...
MinRK -
Show More
@@ -88,13 +88,15 b' var IPython = (function (IPython) {'
88 // ii) to prevent the div from scrolling up when the last cell is being
88 // ii) to prevent the div from scrolling up when the last cell is being
89 // edited, but is too low on the page, which browsers will do automatically.
89 // edited, but is too low on the page, which browsers will do automatically.
90 var that = this;
90 var that = this;
91 this.container = $("<div/>").addClass("container").attr("id", "notebook-container");
91 var end_space = $('<div/>').addClass('end_space').height("30%");
92 var end_space = $('<div/>').addClass('end_space').height("30%");
92 end_space.dblclick(function (e) {
93 end_space.dblclick(function (e) {
93 if (that.read_only) return;
94 if (that.read_only) return;
94 var ncells = that.ncells();
95 var ncells = that.ncells();
95 that.insert_cell_below('code',ncells-1);
96 that.insert_cell_below('code',ncells-1);
96 });
97 });
97 this.element.append(end_space);
98 this.element.append(this.container);
99 this.container.append(end_space);
98 $('div#notebook').addClass('border-box-sizing');
100 $('div#notebook').addClass('border-box-sizing');
99 };
101 };
100
102
@@ -414,7 +416,7 b' var IPython = (function (IPython) {'
414 * @return {jQuery} A selector of all cell elements
416 * @return {jQuery} A selector of all cell elements
415 */
417 */
416 Notebook.prototype.get_cell_elements = function () {
418 Notebook.prototype.get_cell_elements = function () {
417 return this.element.children("div.cell");
419 return this.container.children("div.cell");
418 };
420 };
419
421
420 /**
422 /**
@@ -179,7 +179,7 b' class="notebook_app"'
179 </div>
179 </div>
180 </div>
180 </div>
181
181
182 <div id="ipython-main-app" class="container">
182 <div id="ipython-main-app">
183
183
184 <div id="notebook_panel">
184 <div id="notebook_panel">
185 <div id="notebook"></div>
185 <div id="notebook"></div>
General Comments 0
You need to be logged in to leave comments. Login now