modal: remove visibility optimization (hard to track edge effect)

This commit is contained in:
bordun 2021-03-01 09:29:17 +01:00
parent c7a98415aa
commit b5446c08ac
4 changed files with 7 additions and 22 deletions

View file

@ -1,12 +1,17 @@
# Changelog
# 1.8.10
- bug fixes
- modal: issues with children's visibility
# 1.8.9
- bug fixes
- script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script)
- multixy: `decimals` property not applied
- multixy: spring behavior not working until all points are released
- custom module: prevent require() from reading submodules files each time and instead return the object in memory
- custom module: prevent require() from reading submodules files each time and instead return the object in memory
# 1.8.8

View file

@ -100,13 +100,6 @@ class ColorPicker extends UiWidget {
}
childrenVisible() {
return true
}
setName(n = '') {
this.name = n

View file

@ -1065,13 +1065,7 @@ class Widget extends EventEmitter {
isVisible() {
return this.getProp('visible') && this.parent.childrenVisible()
}
childrenVisible() {
return this.isVisible()
return this.getProp('visible') && this.parent.isVisible()
}

View file

@ -126,13 +126,6 @@ class Modal extends Panel {
}
childrenVisible() {
return this.init && this.value && this.isVisible()
}
setValue(v, options={}) {
if (this.init === undefined) return