Fix children not getting re-sorted upon visibility changes
This commit is contained in:
parent
a2d9f43a2e
commit
06f109575d
@ -281,11 +281,13 @@ open class EditablePanel<out S : Screen>(
|
||||
|
||||
if (visibleChildrenParent?.contains(this) == false) {
|
||||
visibleChildrenParent.add(this)
|
||||
parent?.invalidateChildrenSorting()
|
||||
parent?.layoutInvalidated = true
|
||||
}
|
||||
} else {
|
||||
if (visibleChildrenParent?.contains(this) == true) {
|
||||
visibleChildrenParent.remove(this)
|
||||
parent?.invalidateChildrenSorting()
|
||||
parent?.layoutInvalidated = true
|
||||
}
|
||||
}
|
||||
@ -1451,6 +1453,7 @@ open class EditablePanel<out S : Screen>(
|
||||
|
||||
if (old != new) {
|
||||
child.visibilityChanges(new, old)
|
||||
child.invalidateChildrenSorting()
|
||||
}
|
||||
|
||||
child.updateVisible()
|
||||
|
Loading…
Reference in New Issue
Block a user