浏览代码

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

Enrico Berti 9 年之前
父节点
当前提交
750ad2f6ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {
             ace().resize();
-            editorHeight = ace().session.getLength();
+            editorHeight = Math.min(maxAutoLines, ace().session.getLength());
             huePubSub.publish('redraw.fixed.headers');
           }
         }