Pārlūkot izejas kodu

HUE-6284 [editor] Re-render the fixed results header and column at page focus

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
68169f8

+ 1 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -684,6 +684,7 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           huePubSub.resumeAppSubscribers(app);
           $('.embeddable').hide();
           $('#embeddable_' + app).insertBefore($('.embeddable:first')).show();
+          huePubSub.publish('app.gained.focus', app);
         };
 
         self.dropzoneError = function (filename) {

+ 6 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -2843,6 +2843,12 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
       redrawFixedHeaders(200);
     }, 'editor');
 
+    huePubSub.subscribe('app.gained.focus', function (app) {
+      if (app === 'editor') {
+        huePubSub.publish('redraw.fixed.headers');
+      }
+    }, 'editor');
+
     huePubSub.subscribe('show.saveToFile.modal', function () {
       $('#saveToFileModal').modal('show');
     }, 'editor');