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

Incorrect adding widgets #403

Open cheack opened 10 years ago

cheack commented 10 years ago

Hi! Widget is added incorrect when i put string parameters to "add_widget" method e.g.

gridster.add_widget(widget, "3", "3")

demo: http://jsfiddle.net/ekvfe/

hrosenbauer commented 10 years ago

Yes, because the API documentation states that size_x and size_y have to by of type Number, not String: http://gridster.net/#add_widget_method