Browse Source

[editor] Redraw fixed headers on assist show/hide

Enrico Berti 9 năm trước cách đây
mục cha
commit
fef6effdf0

+ 2 - 0
desktop/core/src/desktop/static/desktop/js/jquery.tableextender.js

@@ -250,6 +250,8 @@
       clonedTableContainer.css("marginTop", (-$(plugin.element).parent().scrollTop()) + "px");
     });
 
+    clonedTableContainer.css("marginTop", (-$(plugin.element).parent().scrollTop()) + "px");
+
     $(window).scroll(function () {
       clonedTableVisibleContainer.css("top", ($(plugin.element).parent().offset().top - $(window).scrollTop()) + "px");
       clonedCellVisibleContainer.css("top", ($(plugin.element).parent().offset().top - $(window).scrollTop()) + "px");

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

@@ -2025,6 +2025,10 @@ ${ require.config() }
         }
       });
 
+      viewModel.isLeftPanelVisible.subscribe(function (value) {
+        window.setTimeout(redrawFixedHeaders, 200);
+      });
+
       $(document).on("showAuthModal", function (e, data) {
         viewModel.authSessionUsername('${ user.username }');
         viewModel.authSessionPassword('');