ducksboard/gridster.js — pull request #154 by tuvokki (2013-04-11 12:20:50+00:00)
Title: Add setting for maximum number of columns

Right now the number of columns is calculated by dividing the available
space by the necessary space. I want to have an option to limit the
number of calculated columns, without changing the width of the div my
grid lives in.

In order to limit the number of calculated columns max_cols is set to a
number. To have 'unlimited' columns set the value of max_cols to -1 (as
is done in the default settings). This provides the arbitrary useful
functionality to set the max number of columns to 0. Any sideeffect
caused by this is mitigated by checking that the max_cols is larger
than the min_cols setting.