mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #12108: Limit the draggable area of widgets to their headers
This commit is contained in:
2
netbox/project-static/dist/netbox.js
vendored
2
netbox/project-static/dist/netbox.js
vendored
File diff suppressed because one or more lines are too long
2
netbox/project-static/dist/netbox.js.map
vendored
2
netbox/project-static/dist/netbox.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -22,6 +22,11 @@ export function initDashboard(): void {
|
||||
// Initialize the grid
|
||||
let grid = GridStack.init({
|
||||
cellHeight: 100,
|
||||
draggable: {
|
||||
handle: '.grid-stack-item-content .card-header',
|
||||
appendTo: 'body',
|
||||
scroll: true
|
||||
}
|
||||
});
|
||||
|
||||
// Create a listener for the dashboard save button
|
||||
|
Reference in New Issue
Block a user