소스 검색

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();
     }