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

Trying to make a 5x5 grid? #560

Open karl0ss opened 8 years ago

karl0ss commented 8 years ago

Not really an issue, but I can't work out why this isn't working, im trying to make a 5x5 grid, the rows aren't that important, but the columns are...

I have created my grid -

var grid_canvas = $(".gridster > ul").gridster({ widget_margins: [3, 3], max_cols: 5, widget_base_dimensions: [140, 140],

But it still creates 6 columns? I can't work out what I'm doing wrong on why it wont change?

Sure i'm doing something stupid..

str commented 8 years ago

+1

jbrundage commented 8 years ago

This does seem like a bug... a parameter with a name like "max_cols" shouldn't be zero based.