Don't preserve height when clear_output(wait=False) is called

Jonathan Frederic 13 years ago
parent 6bfd28b91d
commit b8d7197ec6

@ -625,12 +625,15 @@ var IPython = (function (IPython) {
this.clear_queued = true;
} else {
this.clear_queued = false;
// Fix the output div's height
var height = this.element.height();
this.element.height(height);
// Fix the output div's height if the clear_output is waiting for
// new output (it is being used in an animation).
if (this.clear_queued) {
var height = this.element.height();
this.element.height(height);
this.clear_queued = false;
}
// clear all, no need for logic
this.element.html("");
this.outputs = [];

Loading…
Cancel
Save