canvas: onDraw() called twice when calling updateCanvas()

This commit is contained in:
jean-emmanuel 2023-03-11 23:04:23 +01:00
parent 3a9882313c
commit ba07e014ac
3 changed files with 2 additions and 3 deletions

View file

@ -172,8 +172,6 @@ class CanvasWidget extends Canvas {
cssVars: this.cssVars
}, {sync: false, send: false})
this.batchDraw()
}
extraResizeHandle(event) {

View file

@ -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()
}