modal: fix typo breaking position in scrolled tabs

This commit is contained in:
bordun 2018-02-01 10:14:38 +01:00
parent 529800127a
commit 3071aec706
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 0.23.1
- bug fixes
- regression breaking modal's position in scrolled tab containers
## 0.23.0
- bug fixes

View file

@ -166,7 +166,7 @@ module.exports = class Modal extends Panel {
this.parentScroll = [parent.widget.scrollLeft, parent.widget.scrollTop]
}
parent.widget.scrollLeft = this.value ? 0 : this.parentScroll[0]
parent.widget.scrolTop = this.value ? 0 : this.parentScroll[1]
parent.widget.scrollTop = this.value ? 0 : this.parentScroll[1]
parent.widget.style.overflow = this.value ? 'hidden' : ''
scrollFixed = true
}