Browse Source

Merge pull request #11888 from ArtemDzhereleiko/AD/hot-fix/scada-row-columns

Fixed scada editor row and column calculation
pull/11897/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
7a29894f16
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/scada/scada-symbol.models.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/scada/scada-symbol.models.ts

@ -220,8 +220,8 @@ export interface ScadaSymbolMetadata {
export const emptyMetadata = (width?: number, height?: number): ScadaSymbolMetadata => ({
title: '',
widgetSizeX: width ? width/100 : 3,
widgetSizeY: height ? height/100 : 3,
widgetSizeX: width ? Math.max(Math.round(width/100), 1) : 3,
widgetSizeY: height ? Math.max(Math.round(height/100), 1) : 3,
tags: [],
behavior: [],
properties: []

Loading…
Cancel
Save