This commit is contained in:
Corey Johnson
2013-04-30 11:36:07 -07:00
committed by probablycorey
parent bbb7dfdd07
commit 35b0e06260

View File

@@ -895,6 +895,7 @@ class Editor extends View
@activeEditSession.finalizeSelections()
@syncCursorAnimations()
afterAttach: (onDom) ->
return unless onDom
@redraw() if @redrawOnReattach
@@ -1274,8 +1275,8 @@ class Editor extends View
updateLayerDimensions: ->
height = @lineHeight * @getScreenLineCount()
unless @layerHeight == height
@renderedLines.height(height)
@underlayer.css('min-height', height)
@renderedLines.height(height)
@overlayer.height(height)
@layerHeight = height