Show More
@@ -293,14 +293,18 b' var IPython = (function (IPython) {' | |||||
293 |
|
293 | |||
294 | this.outputs.push(json); |
|
294 | this.outputs.push(json); | |
295 |
|
295 | |||
296 | // Only reset the height to automatic if the height is currently |
|
296 | // We must release the animation fixed height in a timeout since Gecko | |
297 | // fixed (done by wait=True flag on clear_output). |
|
297 | // (FireFox) doesn't render the image immediately as the data is | |
298 | if (needs_height_reset) { |
|
298 | // available. | |
299 | this.element.height(''); |
|
|||
300 | } |
|
|||
301 |
|
||||
302 | var that = this; |
|
299 | var that = this; | |
303 |
setTimeout(function(){ |
|
300 | setTimeout(function(){ | |
|
301 | // Only reset the height to automatic if the height is currently | |||
|
302 | // fixed (done by wait=True flag on clear_output). | |||
|
303 | if (needs_height_reset) { | |||
|
304 | that.element.height(''); | |||
|
305 | } | |||
|
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