Show More
@@ -293,14 +293,18 var IPython = (function (IPython) { | |||
|
293 | 293 | |
|
294 | 294 | this.outputs.push(json); |
|
295 | 295 | |
|
296 | // We must release the animation fixed height in a timeout since Gecko | |
|
297 | // (FireFox) doesn't render the image immediately as the data is | |
|
298 | // available. | |
|
299 | var that = this; | |
|
300 | setTimeout(function(){ | |
|
296 | 301 | // Only reset the height to automatic if the height is currently |
|
297 | 302 | // fixed (done by wait=True flag on clear_output). |
|
298 | 303 | if (needs_height_reset) { |
|
299 |
|
|
|
304 | that.element.height(''); | |
|
300 | 305 | } |
|
301 | ||
|
302 | var that = this; | |
|
303 | setTimeout(function(){that.element.trigger('resize');}, 100); | |
|
306 | that.element.trigger('resize'); | |
|
307 | }, 250); | |
|
304 | 308 | }; |
|
305 | 309 | |
|
306 | 310 |
General Comments 0
You need to be logged in to leave comments.
Login now