UI: Fix analoque gauges bug on resize.
This commit is contained in:
parent
cb8b7bbbeb
commit
22d584317b
@ -107,8 +107,10 @@ export abstract class TbBaseGauge<S, O extends GenericOptions> {
|
||||
}
|
||||
|
||||
resize() {
|
||||
if (this.ctx.width > 0 && this.ctx.height > 0) {
|
||||
this.gauge.update({width: this.ctx.width, height: this.ctx.height} as GenericOptions);
|
||||
}
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.gauge.destroy();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user