diff --git a/src/client/widgets/common/canvas.js b/src/client/widgets/common/canvas.js index cc3a1995..213b749a 100644 --- a/src/client/widgets/common/canvas.js +++ b/src/client/widgets/common/canvas.js @@ -207,12 +207,16 @@ class Canvas extends Widget { return case 'css': if (!/\/\*\s*noresize\s*\*\//.test(this.getProp('css'))) resize.check(this.canvas, true) - fastdom.measure(()=>{ - this.cacheCanvasStyle() - fastdom.mutate(()=>{ - this.batchDraw() + if (!/\/\*\s*novars\s*\*\//.test(this.getProp('css'))) { + // tmp test + fastdom.measure(()=>{ + this.cacheCanvasStyle() + fastdom.mutate(()=>{ + this.batchDraw() + }) }) - }) + } + case 'lineWidth': case 'padding': resize.check(this.canvas, true)