mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #1984 from jasongrout/resize
Rename 'resize' event to 'resizeOutput'
This commit is contained in:
commit
58c66ef453
@ -112,7 +112,7 @@ define([
|
||||
this.prompt_overlay.dblclick(function () { that.toggle_output(); });
|
||||
this.prompt_overlay.click(function () { that.toggle_scroll(); });
|
||||
|
||||
this.element.resize(function () {
|
||||
this.element.on('resizeOutput', function () {
|
||||
// maybe scroll output,
|
||||
// if it's grown large enough and hasn't already been scrolled.
|
||||
if (!that.scrolled && that._should_scroll()) {
|
||||
@ -343,7 +343,7 @@ define([
|
||||
this._needs_height_reset = false;
|
||||
}
|
||||
|
||||
this.element.trigger('resize');
|
||||
this.element.trigger('resizeOutput');
|
||||
};
|
||||
|
||||
OutputArea.prototype.create_output_area = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user