modal: fix restoring state when recreated
This commit is contained in:
parent
d12716d18f
commit
1175374341
3 changed files with 11 additions and 1 deletions
|
|
@ -268,7 +268,12 @@ class Modal extends Panel {
|
|||
|
||||
}
|
||||
|
||||
setScroll(x, y) {
|
||||
|
||||
if (x !== undefined) this.popupContent.firstChild.scrollLeft = this.scroll[0] = x
|
||||
if (y !== undefined) this.popupContent.firstChild.scrollTop = this.scroll[1] = y
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue