@schneideress/dashboardframework 20.0.13 → 20.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4849,7 +4849,7 @@ class RADashboardArea {
|
|
|
4849
4849
|
this.calculateLayout = this.raDashboardEventBus.subscribe(RAEvent.LayoutChange).subscribe(() => {
|
|
4850
4850
|
this.options.api?.optionsChanged();
|
|
4851
4851
|
});
|
|
4852
|
-
});
|
|
4852
|
+
}, 2000);
|
|
4853
4853
|
}
|
|
4854
4854
|
ngOnChanges(changes) {
|
|
4855
4855
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
@@ -5168,7 +5168,7 @@ class RADashboardArea {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
this.gridheight = areaHeight;
|
|
5170
5170
|
if (this.hasGrid) {
|
|
5171
|
-
const baseHeight = this.gridItem
|
|
5171
|
+
const baseHeight = this.gridItem?.height; // gridster container current height
|
|
5172
5172
|
if (baseHeight) {
|
|
5173
5173
|
const effectiveCount = (this.widgetList.length % 2 === 1) ? this.widgetList.length + 1 : this.widgetList.length;
|
|
5174
5174
|
const multiplier = Math.max(1, effectiveCount / 2);
|