Преглед изворни кода

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

Enrico Berti пре 7 година
родитељ
комит
53814ba
1 измењених фајлова са 1 додато и 0 уклоњено
  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');
   }, 'dashboard');
 
 
   huePubSub.subscribeOnce('gridster.added.widget', function () {
   huePubSub.subscribeOnce('gridster.added.widget', function () {
+    $(window).trigger('resize');
     if (searchViewModel.isQueryBuilder()) {
     if (searchViewModel.isQueryBuilder()) {
       $gridster.disable_resize();
       $gridster.disable_resize();
     }
     }