canvas based widgets not updating when hidden

This commit is contained in:
bordun 2021-08-26 12:57:16 +02:00
parent fc39312588
commit 1e0f3fedfd
2 changed files with 10 additions and 1 deletions

View file

@ -72,6 +72,14 @@ class Canvas extends Widget {
}
setVisibility(){
var visible = this.visible
super.setVisibility()
if (!visible && this.visible) this.batchDraw()
}
cacheCanvasStyle(style){
style = style || window.getComputedStyle(this.canvas)