소스 검색

HUE-6553 [frontend] Avoid redrawing of fixed headers if the editor size hasn't changed

Enrico Berti 9 년 전
부모
커밋
810f388
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -2016,9 +2016,10 @@
           if (ace().session.getLength() == editorHeight) {
             resized = false;
           }
-          if (resized) {
+          if (resized && $target.height() !== lastEditorSize) {
             ace().resize();
             editorHeight = Math.min(maxAutoLines, ace().session.getLength());
+            lastEditorSize = $target.height();
             huePubSub.publish('redraw.fixed.headers');
           }
         }