tabs: test tabs perfs without DOM detach (#589)

This commit is contained in:
bordun 2020-01-26 12:06:50 +01:00
parent f6d1c00585
commit 0f86474eb6

View file

@ -38,14 +38,14 @@ module.exports = class Tab extends Panel {
hide() {
if (this.detached) return
this.container.removeChild(this.widget)
// this.container.removeChild(this.widget)
this.container.classList.remove('show')
this.detached = true
}
show() {
if (!this.detached) return
this.container.appendChild(this.widget)
// this.container.appendChild(this.widget)
this.container.classList.add('show')
this.detached = false
resize.check(this.widget, true)