From 37651392d0d1200e14909ab8ca8f2c98f3c1fa9c 2014-04-03 19:19:15
From: jon <jon.freder@gmail.com>
Date: 2014-04-03 19:19:15
Subject: [PATCH] Move append_output animation height lock release into timeout.

---

diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js
index 79b902e..6dd7d0e 100644
--- a/IPython/html/static/notebook/js/outputarea.js
+++ b/IPython/html/static/notebook/js/outputarea.js
@@ -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);
     };