Explorar el Código

[assist] Fix single panel window resize issue

Johan Ahlen hace 10 años
padre
commit
38c4c31275
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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;