소스 검색

HUE-5571 [core] Move the window.zoom event to the shared footer code

Enrico Berti 9 년 전
부모
커밋
79df208
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      desktop/core/src/desktop/templates/common_header_footer_components.mako

+ 4 - 0
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -363,6 +363,10 @@ from metadata.conf import has_optimizer, OPTIMIZER
       $.jHueNotify.error(msg);
     });
 
+    $($('#zoomDetectFrame')[0].contentWindow).resize(function () {
+      $(window).trigger('zoom');
+    });
+
     %if messages:
       %for message in messages:
         %if message.tags == 'error':