javascript - How to forbid gridster to move widget element down -
all board filled widgets, without margin. , when try move element 1 column(1) another(2) elements @ column 2 go down out of board like:
i'd forbid placing widget place if there no place widgets in column.
my code:
gridster = $(".gridster > ul").gridster({ widget_margins: [mysizedetector.blockmargin, mysizedetector.blockmargin], widget_base_dimensions: [mysizedetector.dx, mysizedetector.dy], /*[width, height]*/ min_cols: mysizedetector.xcount, min_rows: mysizedetector.ycount, }).data('gridster');
thanks in advance!
i think can restrict go in x-axis beyond container, not in y-axis.
because have min_cols
, max_cols
restrict in x-axis. have min_rows but not max_rows
.
you can refer documentation: http://gridster.net/#documentation
Comments
Post a Comment