max_cols: to disable max_col option set to null instead of '-1'.

Default is null.
This commit is contained in:
vieron
2013-06-13 15:22:27 +02:00
parent 23482b58cd
commit 0a3315d3cb
+2 -2
View File
@@ -15,7 +15,7 @@
extra_rows: 0,
extra_cols: 0,
min_cols: 1,
max_cols: -1,
max_cols: null,
min_rows: 15,
max_size_x: 6,
autogenerate_stylesheet: true,
@@ -2540,7 +2540,7 @@
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;
}