mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user