ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

fixed add_faux_cols to make it actually work #298

Closed daohoangson closed 6 years ago

romgen commented 9 years ago

Seems to be fixed in latest gridster?

Current gridster code:

var max_cols = actual_cols + (cols || 1); max_cols = Math.min(max_cols, this.options.max_cols);

    for (var c = actual_cols + 1; c <= max_cols; c++) {
        for (var r = this.rows; r >= 1; r--) {
            this.add_faux_cell(r, c);
        }
    }