From e79d1735bc3a09bd398bbaf1c0be0c0c6146fac9 Mon Sep 17 00:00:00 2001 From: kalutkaz Date: Fri, 22 Apr 2022 11:34:55 +0300 Subject: [PATCH] Refactoring --- .../modules/home/components/widget/lib/canvas-digital-gauge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts b/ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts index bd37512dcc..b89b3344c0 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts @@ -628,7 +628,7 @@ function barDimensions(context: DigitalGaugeCanvasRenderingContext2D, bd.labelY = bd.baseY + bd.height; bd.timeseriesLabelY = determineTimeseriesLabelY(options, bd.labelY, bd.fontSizeFactor) if (options.showUnitTitle || options.showTimestamp) { - bd.barBottom = bd.labelY * 1.1 - (8 + options.fontLabelSize) * bd.fontSizeFactor; + bd.barBottom = bd.labelY - options.fontLabelSize * bd.fontSizeFactor; } else { bd.barBottom = bd.labelY }