Browse Source

HUE-8101 [dashboard] Adding a widget should trigger a resize on the window to recalculate the virtual Gridster grid

Enrico Berti 7 years ago
parent
commit
53814ba508
1 changed files with 1 additions and 0 deletions
  1. 1 0
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 1 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -4149,6 +4149,7 @@ $(document).ready(function () {
   }, 'dashboard');
 
   huePubSub.subscribeOnce('gridster.added.widget', function () {
+    $(window).trigger('resize');
     if (searchViewModel.isQueryBuilder()) {
       $gridster.disable_resize();
     }