Open CaptainHypertext opened 7 years ago
i am facing the same issue, waiting for any fixes.
I ran into the same issue. I played around a lot with it until I found out adding the "max_cols" to the gridster options object itself seem to solve the problem (Note: CaptainHypertext's config seems to have the max_cols inside the resize object).
My object: gridster = $(".gridster ul").gridster({ widget_margins: [5, 5], widget_base_dimensions: ['auto', 100], autogenerate_stylesheet: true, min_cols: 4, max_cols: 4, min_rows: 7, resize: { enabled: true } }).data('gridster');
I tried using
auto
as the widget_base_dimension width as seen in this demo, but it gives me the errorgm[1] is undefined
. The stack trace points to this line infn.get_highest_occupied_cell
:And gm is an empty array. Here is my full initialization:
It works fine if I take out the auto option. Am I doing this wrong, or is it a bug?