Browse Source

HUE-4410 [editor] Fix editor size issue for large pasted queries

Enrico Berti 9 years ago
parent
commit
750ad2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -1465,7 +1465,7 @@
           }
           }
           if (resized) {
           if (resized) {
             ace().resize();
             ace().resize();
-            editorHeight = ace().session.getLength();
+            editorHeight = Math.min(maxAutoLines, ace().session.getLength());
             huePubSub.publish('redraw.fixed.headers');
             huePubSub.publish('redraw.fixed.headers');
           }
           }
         }
         }