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.04k stars 1.2k forks source link

Possible wrong column count #471

Open SuperCoolSEBoy opened 9 years ago

SuperCoolSEBoy commented 9 years ago

fn.generate_grid_and_stylesheet = function() { ........ var actual_cols = this.$widgets.map(function() { return $(this).attr('data-col'); }).get(); ...... }

Please correct me if I understand this in the wrong way.....

I guess instead of using data-col, we should use data-col + sizeX to calculate the actual cols...