mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
only put the notebook in a container
allows pager to be full-width
This commit is contained in:
parent
116a461bce
commit
265a8e7edb
@ -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 = $("<div/>").addClass("container").attr("id", "notebook-container");
|
||||
var end_space = $('<div/>').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");
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -179,7 +179,7 @@ class="notebook_app"
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ipython-main-app" class="container">
|
||||
<div id="ipython-main-app">
|
||||
|
||||
<div id="notebook_panel">
|
||||
<div id="notebook"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user