##// END OF EJS Templates
Double clicking on the end space will insert a new cell.
Brian E. Granger -
Show More
@@ -37,7 +37,12 b' var IPython = (function (IPython) {'
37 // i) provide a margin between the last cell and the end of the notebook
37 // i) provide a margin between the last cell and the end of the notebook
38 // ii) to prevent the div from scrolling up when the last cell is being
38 // ii) to prevent the div from scrolling up when the last cell is being
39 // edited, but is too low on the page, which browsers will do automatically.
39 // edited, but is too low on the page, which browsers will do automatically.
40 var that = this;
40 var end_space = $('<div class="end_space"></div>').height(150);
41 var end_space = $('<div class="end_space"></div>').height(150);
42 end_space.dblclick(function (e) {
43 var ncells = that.ncells();
44 that.insert_code_cell_after(ncells-1);
45 });
41 this.element.append(end_space);
46 this.element.append(end_space);
42 $('div#notebook').addClass('border-box-sizing');
47 $('div#notebook').addClass('border-box-sizing');
43 };
48 };
General Comments 0
You need to be logged in to leave comments. Login now