Browse Source

Merge pull request #12410 from GordonSmith/HPCC-21763

HPCC-21763: ECLWatch DiskUsage resize issues

Reviewed-By: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 6 years ago
parent
commit
dfa9107c89
1 changed files with 2 additions and 5 deletions
  1. 2 5
      esp/src/eclwatch/ActivityWidget.js

+ 2 - 5
esp/src/eclwatch/ActivityWidget.js

@@ -240,9 +240,9 @@ define([
                 var origResize = this._diskSummaryPane.resize;
                 var origResize = this._diskSummaryPane.resize;
                 this._diskSummaryPane.resize = function (size) {
                 this._diskSummaryPane.resize = function (size) {
                     origResize.apply(this, arguments);
                     origResize.apply(this, arguments);
-                    if (context._diskUsage && context._diskUsage.renderCount()) {
+                    if (context._diskUsage) {
                         context._diskUsage
                         context._diskUsage
-                            .resize({ width: size.w, height: size.h })
+                            .resize({ width: size.w, height: size.h || context._diskSummaryPane.h })
                             .lazyRender()
                             .lazyRender()
                             ;
                             ;
                     }
                     }
@@ -283,9 +283,6 @@ define([
                 ESPUtil.MonitorVisibility(this.gridTab, function (visibility) {
                 ESPUtil.MonitorVisibility(this.gridTab, function (visibility) {
                     if (visibility) {
                     if (visibility) {
                         context.refreshGrid();
                         context.refreshGrid();
-                        if (!context._diskUsage.renderCount()) {
-                            context._diskUsage.lazyRender();
-                        }
                     }
                     }
                 });
                 });
                 this.createStackControllerTooltip(this.id + "AutoRefresh", this.i18n.AutoRefresh + ": " + this.autoRefreshButton.get("checked"));
                 this.createStackControllerTooltip(this.id + "AutoRefresh", this.i18n.AutoRefresh + ": " + this.autoRefreshButton.get("checked"));