Remove the bottomPaddingInLines from editor

This commit is contained in:
probablycorey
2013-04-30 15:13:43 -07:00
parent cb2d24baca
commit 0be166bb59
2 changed files with 3 additions and 9 deletions

View File

@@ -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