1
0
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:
jeremystretch
2023-03-31 09:26:58 -04:00
parent 730eb2e83b
commit 198c004c1d
4 changed files with 8 additions and 2 deletions

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because one or more lines are too long

View File

@@ -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