소스 검색

[assist] Fix single panel window resize issue

Johan Ahlen 10 년 전
부모
커밋
38c4c31275
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 5 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -981,7 +981,11 @@
         $allExtras.show();
       }
       if (panelDefinitions().length === 1) {
-        $allPanels.height($container.innerHeight() - allExtrasHeight);
+        var adjustHeightSingle = function () {
+          $allPanels.height($container.innerHeight() - allExtrasHeight);
+        }
+        adjustHeightSingle();
+        $(window).resize(adjustHeightSingle);
         $allExtras.show();
         $allPanels.show();
         return;