Merge pull request #1984 from jasongrout/resize

Rename 'resize' event to 'resizeOutput'
This commit is contained in:
Thomas Kluyver 2017-01-20 14:43:44 +00:00 committed by GitHub
commit 58c66ef453

View File

@ -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 () {