فهرست منبع

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

Enrico Berti 7 سال پیش
والد
کامیت
53814ba508
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');
 
   huePubSub.subscribeOnce('gridster.added.widget', function () {
+    $(window).trigger('resize');
     if (searchViewModel.isQueryBuilder()) {
       $gridster.disable_resize();
     }