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

@ -4,7 +4,8 @@
- bug fixes
- nested property inheritance (eg. `@{id_@{id_x}}`) not updating properly
- canvas based widgets not updating when hidden
## 1.9.12
- bug fixes

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)