Browse Source
Merge pull request #12233 from vvlladd28/bug/dashboard/adaptive-when-resize
Fixed adaptive dashboard grid when moving widget
pull/12255/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
|
|
|
@ -253,7 +253,10 @@ export class DashboardComponent extends PageComponent implements IDashboardCompo |
|
|
|
draggable: { |
|
|
|
enabled: this.isEdit && !this.isEditingWidget, |
|
|
|
delayStart: 100, |
|
|
|
stop: (_, itemComponent) => {(itemComponent.item as DashboardWidget).updatePosition(itemComponent.$item.x, itemComponent.$item.y);} |
|
|
|
stop: (_, itemComponent) => { |
|
|
|
(itemComponent.item as DashboardWidget).updatePosition(itemComponent.$item.x, itemComponent.$item.y); |
|
|
|
this.notifyGridsterOptionsChanged(); |
|
|
|
} |
|
|
|
}, |
|
|
|
itemChangeCallback: () => this.dashboardWidgets.sortWidgets(), |
|
|
|
itemInitCallback: (_, itemComponent) => { |
|
|
|
|