Pārlūkot izejas kodu

HUE-6709 [editor] Column list can jump back and forth depending on its size

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
9cd7d30

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

@@ -2107,7 +2107,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
             %endif
             if (snippet.isResultSettingsVisible()) {
               snippetEl.find('.snippet-grid-settings').css({
-                "height": Math.ceil($(window).height() - Math.max($('#queryResults').offset().top, topCoord)) + 'px'
+                "height": Math.max(100, Math.ceil($(window).height() - Math.max($('#queryResults').offset().top, topCoord)))+ 'px'
               });
               snippetEl.find('.result-settings').animate({
                 'marginTop': margin