浏览代码

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

Enrico Berti 7 年之前
父节点
当前提交
6b05c0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js

+ 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));
     });
   });