|
|
|
|
@ -31,7 +31,8 @@ var IPython = (function (IPython) {
|
|
|
|
|
// i) provide a margin between the last cell and the end of the notebook
|
|
|
|
|
// 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.
|
|
|
|
|
this.element.append($('<div class="end_space"></div>').height(150));
|
|
|
|
|
var end_space = $('<div class="end_space"></div>').height(150);
|
|
|
|
|
this.element.append(end_space);
|
|
|
|
|
$('div#notebook').addClass('border-box-sizing');
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -155,9 +156,6 @@ var IPython = (function (IPython) {
|
|
|
|
|
this.selected_cell().unselect();
|
|
|
|
|
};
|
|
|
|
|
this.cells()[index].select();
|
|
|
|
|
if (index === (this.ncells()-1)) {
|
|
|
|
|
this.scroll_to_bottom();
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
return this;
|
|
|
|
|
};
|
|
|
|
|
|