canvas: canvas-based widgets not drawn when placed in a modal while having a conditional visibility set
This commit is contained in:
parent
7f71b36ec1
commit
b38a9819b3
2 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue