This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new b474327 [hotfix] Set initial size of status widget
b474327 is described below
commit b47432774c2972f2941d6d6f31aa0fb4f5946930
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Jun 4 16:00:30 2021 +0200
[hotfix] Set initial size of status widget
---
.../dashboard/components/widgets/status/status-widget.component.ts | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/ui/src/app/dashboard/components/widgets/status/status-widget.component.ts
b/ui/src/app/dashboard/components/widgets/status/status-widget.component.ts
index a5c32e0..dc7b9f2 100644
--- a/ui/src/app/dashboard/components/widgets/status/status-widget.component.ts
+++ b/ui/src/app/dashboard/components/widgets/status/status-widget.component.ts
@@ -43,6 +43,11 @@ export class StatusWidgetComponent extends
BaseStreamPipesWidget implements OnIn
super(rxStompService, dashboardService, resizeService, false);
}
+ ngOnInit(): void {
+ super.ngOnInit();
+ this.onSizeChanged(this.computeCurrentWidth(this.gridsterItemComponent),
this.computeCurrentHeight(this.gridsterItemComponent));
+ }
+
protected extractConfig(extractor: StaticPropertyExtractor) {
this.interval =
extractor.integerParameter(StatusWidgetConfig.INTERVAL_KEY);
}