Explorar o código

HUE-7886 [dashboard] Fix misplaced global JS variable in the common dashboard

Enrico Berti %!s(int64=7) %!d(string=hai) anos
pai
achega
6b05c0f

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js

@@ -133,7 +133,7 @@ var Row = function (widgets, vm, columns) {
   self.columns = ko.observableArray(columns ? columns : []);
   self.columns.subscribe(function (val) {
     self.columns().forEach(function (col) {
-      col.percWidth(Math.max(3, (100 - self.columns().length * BOOTSTRAP_RATIOS.margin()) / self.columns().length));
+      col.percWidth(Math.max(3, (100 - self.columns().length * hueUtils.bootstrapRatios.margin()) / self.columns().length));
     });
   });