Browse Source

HUE-6684 [editor] Refresh the ace scrollbars on side panel resize

Johan Ahlen 8 years ago
parent
commit
5e85a73
1 changed files with 5 additions and 0 deletions
  1. 5 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -3701,6 +3701,11 @@
       var Tooltip = ace.require("ace/tooltip").Tooltip;
       var AceRange = ace.require('ace/range').Range;
 
+      var resizePubSub = huePubSub.subscribe('split.panel.resized', editor.resize);
+      disposeFunctions.push(function () {
+        resizePubSub.remove();
+      });
+
       var aceLocationHandler = new AceLocationHandler(editor, $el.attr("id"), snippet);
       disposeFunctions.push(function () {
         aceLocationHandler.dispose();