浏览代码

HUE-7312 [core] Fix scroll to column on sample popup

Enrico Berti 8 年之前
父节点
当前提交
245f220
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/templates/sql_context_popover.mako

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

@@ -635,6 +635,7 @@ from metadata.conf import has_navigator
 
         var scrollPubSub = huePubSub.subscribe('context.popover.scroll.to.column', function (colName) {
           if (typeof self.sample.fetchedData() === 'undefined') {
+            self.activeTab('sample');
             self.sample.fetch(function (data) {
               self.initializeSamplesTable(data);
               window.setTimeout(function () {