File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
extra_cols : 0 ,
16
16
min_cols : 1 ,
17
17
min_rows : 15 ,
18
+ max_size_x : 6 ,
19
+ max_size_y : 6 ,
18
20
autogenerate_stylesheet : true ,
19
21
avoid_overlapped_widgets : true ,
20
22
serialize_params : function ( $w , wgd ) {
52
54
* those that have been calculated.
53
55
* @param {Number } [options.min_cols] The minimum required columns.
54
56
* @param {Number } [options.min_rows] The minimum required rows.
57
+ * @param {Number } [options.max_size_x] The maximum number of columns
58
+ * that a widget can span.
59
+ * @param {Number } [options.max_size_y] The maximum number of rows
60
+ * that a widget can span.
55
61
* @param {Boolean } [options.autogenerate_stylesheet] If true, all the
56
62
* CSS required to position all widgets in their respective columns
57
63
* and rows will be generated automatically and injected to the
1970
1976
fn . generate_stylesheet = function ( opts ) {
1971
1977
var styles = '' ;
1972
1978
var extra_cells = 10 ;
1973
- var max_size_y = 6 ;
1974
- var max_size_x = 6 ;
1979
+ var max_size_y = this . options . max_size_y ;
1980
+ var max_size_x = this . options . max_size_x ;
1975
1981
var i ;
1976
1982
var rules ;
1977
1983
You can’t perform that action at this time.
0 commit comments