mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Remove the bottomPaddingInLines from editor
This commit is contained in:
@@ -1272,14 +1272,10 @@ class Editor extends View
|
||||
height = @lineHeight * @getScreenLineCount()
|
||||
unless @layerHeight == height
|
||||
@layerHeight = height
|
||||
@underlayer.height(@layerHeight)
|
||||
@renderedLines.height(@layerHeight)
|
||||
@overlayer.height(@layerHeight)
|
||||
|
||||
bottomPaddingInLines = if @mini then 0 else @bottomPaddingInLines
|
||||
heightWithPadding = @layerHeight + (@lineHeight * bottomPaddingInLines)
|
||||
@verticalScrollbarContent.height(heightWithPadding)
|
||||
@underlayer.height(heightWithPadding)
|
||||
|
||||
@verticalScrollbarContent.height(@layerHeight)
|
||||
@scrollBottom(height) if @scrollBottom() > height
|
||||
|
||||
minWidth = @charWidth * @maxScreenLineLength() + 20
|
||||
|
||||
Reference in New Issue
Block a user