Merge pull request #15580 from atom/as-update-scrollbars-on-detach-reattach

Flush scroll position to dummy scrollbar components on re-attach
This commit is contained in:
Antonio Scandurra
2017-09-07 16:39:16 +02:00
committed by GitHub
2 changed files with 44 additions and 26 deletions

View File

@@ -1403,6 +1403,9 @@ class TextEditorComponent {
if (this.isVisible()) {
this.didShow()
if (this.refs.verticalScrollbar) this.refs.verticalScrollbar.flushScrollPosition()
if (this.refs.horizontalScrollbar) this.refs.horizontalScrollbar.flushScrollPosition()
} else {
this.didHide()
}