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

fix add_widget to use correct size_y when adding rows #342

Open kwak27 opened 10 years ago

kwak27 commented 10 years ago

The call to this.add_faux_rows on 252 used to get passed null whenever col/row were defined for a new widget. This led to only a single row being added to the faux grid and insufficient css rules being generated in generate_stylesheet.

http://jsfiddle.net/uHcHq/

Try dragging the 1 box on top of the 0 and then the 2 box on top of either the 0 or 1.

dsmorse commented 9 years ago

Looks great I merged it into my fork dsmorse/gridster.js