使gridster.js图块粘贴在特定的网格位置(对齐网格) [英] Make gridster.js tiles stick in specific grid positions (snap to grid)

查看:151
本文介绍了使gridster.js图块粘贴在特定的网格位置(对齐网格)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让Gridster.js瓷砖粘住,不会垂直向上移动以填充空白区域。有点像打开按键到网格的布局程序的工作方式...

is there any way to make Gridster.js tile(s) stick, that is not move up vertically to fill empty space. Kind of like the way a layout program with snap-to-grid turned on works...

推荐答案

使用此fork https://github.com/dsmorse/gridster.js

shift_widgets_up: false

选项。

参见演示: http://dsmorse.github.io/gridster.js/demos/sticky-postion.html

这篇关于使gridster.js图块粘贴在特定的网格位置(对齐网格)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆