浏览代码

HUE-8051 [dashboard] Recalculate Gridster size on left and right assist resize

Enrico Berti 7 年之前
父节点
当前提交
806add3
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 6 - 2
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -4330,11 +4330,15 @@ $(document).ready(function () {
     }
   }, 'dashboard');
 
-  huePubSub.subscribe('app.dom.unload', function(app) {
+  huePubSub.subscribe('app.dom.unload', function (app) {
     if (app === 'dashboard') {
       $gridster.destroy();
     }
-  }, 'dashboard')
+  }, 'dashboard');
+
+  huePubSub.subscribe('split.panel.resized', function () {
+    $(window).trigger('resize');
+  }, 'dashboard');
 
 
   $(document).on("click", ".widget-settings-pill", function(){