所有板都由小部件填充,没有边距。当我尝试将元素从一列(1)移动到另一列(2)时,第 2 列的元素就会像下面这样从板子上掉下来:
如果列中没有小部件的位置,我想禁止将小部件放置到某个位置。
我的代码:
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');
提前致谢!