canvas: onDraw() called twice when calling updateCanvas()
This commit is contained in:
parent
3a9882313c
commit
ba07e014ac
3 changed files with 2 additions and 3 deletions
|
|
@ -172,8 +172,6 @@ class CanvasWidget extends Canvas {
|
|||
cssVars: this.cssVars
|
||||
}, {sync: false, send: false})
|
||||
|
||||
this.batchDraw()
|
||||
|
||||
}
|
||||
|
||||
extraResizeHandle(event) {
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ class ScriptVm extends Vm {
|
|||
var widgets = this.resolveId(id)
|
||||
for (var i = widgets.length - 1; i >= 0; i--) {
|
||||
|
||||
if (widgets[i].batchDraw) widgets[i].draw()
|
||||
if (widgets[i].batchDraw) widgets[i].batchDraw()
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue