Explorar o código

HUE-8040 [editor] Avoid jumping on the initial loading of the query history

Enrico Berti %!s(int64=7) %!d(string=hai) anos
pai
achega
03ad5d9

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -731,7 +731,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
         <!-- /ko -->
       </ul>
       <div class="tab-content" style="border: none; overflow-x: hidden">
-        <div class="tab-pane" id="queryHistory" data-bind="css: {'active': currentQueryTab() == 'queryHistory'}, style: { 'height' : Math.max($parent.historyInitialHeight(), 40) + 'px' }">
+        <div class="tab-pane" id="queryHistory" data-bind="css: {'active': currentQueryTab() == 'queryHistory'}, style: { 'height' : $parent.historyInitialHeight() > 0 ? Math.max($parent.historyInitialHeight(), 40) + 'px' : '' }">
           <!-- ko if: $parent.loadingHistory -->
           <div style="padding: 20px">
             <i class="fa fa-spinner fa-spin muted"></i>