UI: Fix analoque gauges bug on resize.

This commit is contained in:
Igor Kulikov 2025-03-21 18:43:48 +02:00
parent cb8b7bbbeb
commit 22d584317b

View File

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