parent
845a93a052
commit
6ed34736f7
1 changed files with 5 additions and 9 deletions
|
|
@ -207,16 +207,12 @@ class Canvas extends Widget {
|
|||
return
|
||||
case 'css':
|
||||
if (!/\/\*\s*noresize\s*\*\//.test(this.getProp('css'))) resize.check(this.canvas, true)
|
||||
if (!/\/\*\s*novars\s*\*\//.test(this.getProp('css'))) {
|
||||
// tmp test
|
||||
fastdom.measure(()=>{
|
||||
this.cacheCanvasStyle()
|
||||
fastdom.mutate(()=>{
|
||||
this.batchDraw()
|
||||
})
|
||||
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