canvas: css: provide a way to bypass resize and css vars checks
This commit is contained in:
parent
4ea2e0b50a
commit
06e14a57c2
1 changed files with 7 additions and 0 deletions
|
|
@ -206,6 +206,13 @@ 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()
|
||||
})
|
||||
})
|
||||
case 'lineWidth':
|
||||
case 'padding':
|
||||
resize.check(this.canvas, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue