Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ids 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 are mitigated by checking that the max_cols is larger than the min_cols setting.
- Loading branch information