mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Update scrollTop to valid position when scrollbar disappears
This commit is contained in:
@@ -130,6 +130,7 @@ class DisplayBuffer extends Model
|
||||
oldWidth = @width
|
||||
@width = newWidth
|
||||
@updateWrappedScreenLines() if newWidth isnt oldWidth and @softWrap
|
||||
@setScrollTop(@getScrollTop()) # Ensure scrollTop is still valid in case horizontal scrollbar disappeared
|
||||
@width
|
||||
|
||||
getScrollTop: -> @scrollTop
|
||||
|
||||
Reference in New Issue
Block a user