mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
max_cols: to disable max_col option set to null instead of '-1'.
Default is null.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
extra_rows: 0,
|
extra_rows: 0,
|
||||||
extra_cols: 0,
|
extra_cols: 0,
|
||||||
min_cols: 1,
|
min_cols: 1,
|
||||||
max_cols: -1,
|
max_cols: null,
|
||||||
min_rows: 15,
|
min_rows: 15,
|
||||||
max_size_x: 6,
|
max_size_x: 6,
|
||||||
autogenerate_stylesheet: true,
|
autogenerate_stylesheet: true,
|
||||||
@@ -2540,7 +2540,7 @@
|
|||||||
|
|
||||||
this.cols = Math.max(min_cols, cols, this.options.min_cols);
|
this.cols = Math.max(min_cols, cols, this.options.min_cols);
|
||||||
|
|
||||||
if (max_cols > -1 && max_cols >= min_cols && max_cols < this.cols) {
|
if (max_cols && max_cols >= min_cols && max_cols < this.cols) {
|
||||||
this.cols = max_cols;
|
this.cols = max_cols;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user