-
-
-
-
-
-
-
-
-
-
-
-
-
-
- timewindow.interval
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- timewindow.time-period
-
-
-
-
-
- timewindow.interval
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- aggregation.function
-
-
- {{ aggregationTypesTranslations.get(aggregationTypes[aggregation]) | translate }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
diff --git a/ui-ngx/src/app/shared/components/time/timewindow-panel.component.scss b/ui-ngx/src/app/shared/components/time/timewindow-panel.component.scss
index 9029c48815..70f43f410c 100644
--- a/ui-ngx/src/app/shared/components/time/timewindow-panel.component.scss
+++ b/ui-ngx/src/app/shared/components/time/timewindow-panel.component.scss
@@ -16,16 +16,14 @@
@import "../../../../scss/constants";
:host {
- width: 100%;
- height: 100%;
- form,
- fieldset {
- height: 100%;
- }
+ display: flex;
+ flex-direction: column;
+ max-height: 100%;
+ max-width: 100%;
+ background-color: #fff;
.mat-content {
overflow: hidden;
- background-color: #fff;
}
.mat-padding {
@@ -70,7 +68,6 @@
:host ::ng-deep {
.mat-mdc-radio-button {
display: block;
- margin-bottom: 16px;
.mdc-form-field {
align-items: start;
> label {
@@ -78,4 +75,7 @@
}
}
}
+ .mat-mdc-tab-group:not(.tb-headless) {
+ height: 100%;
+ }
}
diff --git a/ui-ngx/src/app/shared/components/time/timewindow.component.ts b/ui-ngx/src/app/shared/components/time/timewindow.component.ts
index 0c87020d5b..b525ff0c24 100644
--- a/ui-ngx/src/app/shared/components/time/timewindow.component.ts
+++ b/ui-ngx/src/app/shared/components/time/timewindow.component.ts
@@ -17,6 +17,7 @@
import {
ChangeDetectorRef,
Component,
+ ElementRef,
forwardRef,
Injector,
Input,
@@ -179,6 +180,7 @@ export class TimewindowComponent implements OnInit, OnDestroy, ControlValueAcces
private millisecondsToTimeStringPipe: MillisecondsToTimeStringPipe,
private datePipe: DatePipe,
private cd: ChangeDetectorRef,
+ private nativeElement: ElementRef,
public viewContainerRef: ViewContainerRef,
public breakpointObserver: BreakpointObserver) {
}
@@ -193,20 +195,22 @@ export class TimewindowComponent implements OnInit, OnDestroy, ControlValueAcces
if ($event) {
$event.stopPropagation();
}
- const target = $event.target || $event.srcElement || $event.currentTarget;
- const config = new OverlayConfig();
- config.backdropClass = 'cdk-overlay-transparent-backdrop';
+ const config = new OverlayConfig({
+ panelClass: 'tb-timewindow-panel',
+ backdropClass: 'cdk-overlay-transparent-backdrop',
+ hasBackdrop: true,
+ maxHeight: '80vh',
+ height: 'min-content'
+ });
config.hasBackdrop = true;
const connectedPosition: ConnectedPosition = {
- originX: 'end',
+ originX: 'start',
originY: 'bottom',
- overlayX: 'end',
+ overlayX: 'start',
overlayY: 'top'
};
- config.positionStrategy = this.overlay.position().flexibleConnectedTo(target as HTMLElement)
+ config.positionStrategy = this.overlay.position().flexibleConnectedTo(this.nativeElement)
.withPositions([connectedPosition]);
- config.maxHeight = '70vh';
- config.height = 'min-content';
const overlayRef = this.overlay.create(config);
overlayRef.backdropClick().subscribe(() => {