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

Bug in jquery.gridster.js => empty_cells(col, row, size_x, size_y, $exclude) #301

Open Mockap opened 10 years ago

Mockap commented 10 years ago

HeyHo

there's a bug in function "fn.empty_cells" (I think it's line 485 in the current revision) in the following instruction

var diff = (row + size_y) - wgd.row;

if "row" is a string "size_y" is concatenated for example: ("14" + 6) - 14 = 146 - 14 = 132 possible solution: multiply "row" by 1