Browse Source

UI: Fix analoque gauges bug on resize.

pull/13002/head
Igor Kulikov 2 years ago
parent
commit
22d584317b
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/analogue-gauge.models.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/analogue-gauge.models.ts

@ -107,7 +107,9 @@ export abstract class TbBaseGauge<S, O extends GenericOptions> {
} }
resize() { resize() {
this.gauge.update({width: this.ctx.width, height: this.ctx.height} as GenericOptions); if (this.ctx.width > 0 && this.ctx.height > 0) {
this.gauge.update({width: this.ctx.width, height: this.ctx.height} as GenericOptions);
}
} }
destroy() { destroy() {

Loading…
Cancel
Save