mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
1d65da926039144239aa2fc82aef44fc23b2265f
Until now, the number of rows for the faux grid (this.cols) was calculated taking the highest value among min_rows option, the highest widget, and the number of rows that fits on the wrapper height (based on widget_base_dimensions, widget_margins and extra_rows options). In addition to this, styles for data-row attributes ara generated based on this.cols (above) plus a constant value of 10. This was done to reduce the number of cells by which iterate when dragging, but it's not very logical... So, now the number of rows is calculated by adding the height of all widgets. In this way we ensure that there is always available cells in the grid. Also the same number of rows are generated for both the faux grid and the DOM grid (css styles).
Gridster.js
Gridster is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns. You can even dynamically add and remove elements from the grid.
More at http://gridster.net/.
License
Distributed under the MIT license.
Whodunit
Gridster is built by Ducksboard.
Languages
PHP
85.1%
JavaScript
6.6%
Blade
4.3%
CSS
1.8%
Python
1.1%
Other
1%