canvas: canvas-based widgets not drawn when placed in a modal while having a conditional visibility set

This commit is contained in:
bordun 2020-12-09 15:25:38 +01:00
parent 7f71b36ec1
commit b38a9819b3
2 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,11 @@
# Changelog
## 1.7.8
- bug fixes
- canvas-based widgets not drawn when placed in a modal while having a conditional visibility set
## 1.7.7
- bug fixes

View file

@ -115,15 +115,9 @@ class Canvas extends Widget {
}
isVisible() {
return this.hasSize && super.isVisible()
}
batchDraw() {
if (this.visible) canvasQueue.push(this)
if (this.hasSize && this.visible) canvasQueue.push(this)
}