From e1907a329884b0e5d57f2a8b5ee53104183b129c Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 25 Oct 2023 10:36:36 +0300 Subject: [PATCH] UI: Removed unnecessary style properties and decorators in liquid level widget --- .../widget/lib/indicator/liquid-level-widget.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.component.ts index 35266a241b..cd902287ec 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.component.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// - +import { Component, ElementRef, Input, OnInit } from '@angular/core'; import { WidgetContext } from '@home/models/widget-component.models'; import { isDefined, isDefinedAndNotNull, isNumber, isString } from '@core/utils'; import { @@ -44,7 +44,6 @@ import { } from '@shared/models/widget-settings.models'; import { ResourcesService } from '@core/services/resources.service'; import { NULL_UUID } from '@shared/models/id/has-uuid'; -import { Component, ElementRef, Host, HostBinding, Input, OnInit } from '@angular/core'; import ITooltipsterInstance = JQueryTooltipster.ITooltipsterInstance; @@ -54,9 +53,6 @@ import ITooltipsterInstance = JQueryTooltipster.ITooltipsterInstance; }) export class LiquidLevelWidgetComponent implements OnInit { - @HostBinding('style.width') width = '100%'; - @HostBinding('style.height') height = '100%'; - @Input() ctx: WidgetContext; @@ -96,7 +92,7 @@ export class LiquidLevelWidgetComponent implements OnInit { widgetUnits: string; - constructor(@Host() private elementRef: ElementRef) { + constructor(private elementRef: ElementRef) { } ngOnInit(): void {