فهرست منبع

HUE-7304 [editor] Fix scroll rendering problems of the grid results in presentation mode

Enrico Berti 8 سال پیش
والد
کامیت
44d89bf

+ 4 - 2
desktop/core/src/desktop/static/desktop/js/jquery.huedatatable.js

@@ -593,8 +593,10 @@
             window.clearTimeout(drawTimeout);
             drawTimeout = window.setTimeout(self.fnDraw, Math.max(100, Math.min(self.$table.data('aoColumns') ? self.$table.data('aoColumns').length : 500, 500)));
           }
-          self.$table.parents(oInit['scrollable']).data('scrollFnDt', scrollFn);
-          self.$table.parents(oInit['scrollable']).on('scroll', scrollFn);
+          window.setTimeout(function () {
+            self.$table.parents(oInit['scrollable']).data('scrollFnDt', scrollFn);
+            self.$table.parents(oInit['scrollable']).on('scroll', scrollFn);
+          }, 1000);
         }
       }
       self.$table.addClass('table-huedatatable');

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

@@ -2075,8 +2075,8 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
           }
         }
       },
-      scrollable: vm.editorMode() ? MAIN_SCROLLABLE : '.dataTables_wrapper',
-      contained: !vm.editorMode()
+      scrollable: vm.editorMode() && !vm.isPresentationMode() ? MAIN_SCROLLABLE : '.dataTables_wrapper',
+      contained: !vm.editorMode() || vm.isPresentationMode()
     });
 
     window.setTimeout(function () {