Browse Source

Refactoring

pull/6462/head
kalutkaz 5 years ago
parent
commit
e79d1735bc
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/canvas-digital-gauge.ts

2
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.labelY = bd.baseY + bd.height;
bd.timeseriesLabelY = determineTimeseriesLabelY(options, bd.labelY, bd.fontSizeFactor) bd.timeseriesLabelY = determineTimeseriesLabelY(options, bd.labelY, bd.fontSizeFactor)
if (options.showUnitTitle || options.showTimestamp) { 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 { } else {
bd.barBottom = bd.labelY bd.barBottom = bd.labelY
} }

Loading…
Cancel
Save