mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Use ::bottomPixelPositionForRow to scroll logically
This commit is contained in:
@@ -1514,8 +1514,8 @@ class TextEditorPresenter
|
||||
|
||||
verticalScrollMarginInPixels = @getVerticalScrollMarginInPixels()
|
||||
|
||||
top = @lineTopIndex.topPixelPositionForRow(screenRange.start.row)
|
||||
bottom = @lineTopIndex.topPixelPositionForRow(screenRange.end.row + 1)
|
||||
top = @lineTopIndex.bottomPixelPositionForRow(screenRange.start.row)
|
||||
bottom = @lineTopIndex.bottomPixelPositionForRow(screenRange.end.row + 1)
|
||||
|
||||
if options?.center
|
||||
desiredScrollCenter = (top + bottom) / 2
|
||||
|
||||
Reference in New Issue
Block a user