tabs: don't hide the tabs that going to be shown (avoid resetting scrollstate)

This commit is contained in:
jean-emmanuel 2018-01-25 11:12:40 +01:00
parent 0da7a78b86
commit bc77df2670

View file

@ -176,7 +176,7 @@ module.exports = class Panel extends _widgets_base {
if (this.tabs.length && typeof v == 'number' && v >= 0 && v < this.tabs.length) {
for (let i in this.tabs) {
this.tabs[i].hide()
if (i != v) this.tabs[i].hide()
}
this.value = v