widget: use computed visibility instead of the property value to determine style

This commit is contained in:
bordun 2022-06-08 09:48:08 +02:00
parent ccf44e7ff6
commit 437db2eada
2 changed files with 7 additions and 1 deletions

View file

@ -1259,7 +1259,7 @@ class Widget extends EventEmitter {
if (visible !== this.visible) {
this.visible = !!visible
this.container.style.display = this.getProp('visible') ? '' : 'none'
this.container.style.display = this.visible ? '' : 'none'
for (var c of this.children) {
if (c) c.setVisibility()