Show More
@@ -293,14 +293,18 var IPython = (function (IPython) { | |||||
293 |
|
293 | |||
294 | this.outputs.push(json); |
|
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 | // Only reset the height to automatic if the height is currently |
|
301 | // Only reset the height to automatic if the height is currently | |
297 | // fixed (done by wait=True flag on clear_output). |
|
302 | // fixed (done by wait=True flag on clear_output). | |
298 | if (needs_height_reset) { |
|
303 | if (needs_height_reset) { | |
299 |
|
|
304 | that.element.height(''); | |
300 | } |
|
305 | } | |
301 |
|
306 | that.element.trigger('resize'); | ||
302 | var that = this; |
|
307 | }, 250); | |
303 | setTimeout(function(){that.element.trigger('resize');}, 100); |
|
|||
304 | }; |
|
308 | }; | |
305 |
|
309 | |||
306 |
|
310 |
General Comments 0
You need to be logged in to leave comments.
Login now