widget: use computed visibility instead of the property value to determine style
This commit is contained in:
parent
ccf44e7ff6
commit
437db2eada
2 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
|
||||
## 1.16.6
|
||||
|
||||
- bug fixes
|
||||
- visibility property update issues
|
||||
|
||||
## 1.16.4
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue