Преглед изворни кода

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

Enrico Berti пре 9 година
родитељ
комит
750ad2f
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');
           }
         }