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

@ -70,6 +70,7 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`.
### Bug Fixes (From Beta1)
* [#12108](https://github.com/netbox-community/netbox/issues/12108) - Limit the draggable area of widgets to their headers
* [#12109](https://github.com/netbox-community/netbox/issues/12109) - Fix migration error when replicating more than 100 job results
* [#12112](https://github.com/netbox-community/netbox/issues/12112) - Do not link data source URL for local paths

File diff suppressed because one or more lines are too long

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