diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js
index 3fea91a..87b16d8 100644
--- a/IPython/html/static/notebook/js/outputarea.js
+++ b/IPython/html/static/notebook/js/outputarea.js
@@ -291,8 +291,10 @@ var IPython = (function (IPython) {
         this.expand();
 
         // Clear the output if clear is queued.
+        var needs_height_reset = false;
         if (this.clear_queued) {
             this.clear_output(false);
+            needs_height_reset = true;
         }
 
         if (json.output_type === 'pyout') {
@@ -305,7 +307,13 @@ var IPython = (function (IPython) {
             this.append_stream(json);
         }
         this.outputs.push(json);
-        this.element.height('auto');
+        
+        // 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('auto');    
+        }
+
         var that = this;
         setTimeout(function(){that.element.trigger('resize');}, 100);
     };