Move append_output animation height lock release into timeout.

jon 12 years ago
parent 982aab67ba
commit 45d69b5f25

@ -293,14 +293,18 @@ var IPython = (function (IPython) {
this.outputs.push(json);
// Only reset the height to automatic if the height is currently
// fixed (done by wait=True flag on clear_output).
if (needs_height_reset) {
this.element.height('');
}
// We must release the animation fixed height in a timeout since Gecko
// (FireFox) doesn't render the image immediately as the data is
// available.
var that = this;
setTimeout(function(){that.element.trigger('resize');}, 100);
setTimeout(function(){
// Only reset the height to automatic if the height is currently
// fixed (done by wait=True flag on clear_output).
if (needs_height_reset) {
that.element.height('');
}
that.element.trigger('resize');
}, 250);
};

Loading…
Cancel
Save