Set the lines div height explicitly so it can be > 100% of parent

All editor specs pass
This commit is contained in:
Nathan Sobo
2012-11-09 14:25:59 -07:00
parent c257a989be
commit 3bc11ede77
2 changed files with 6 additions and 2 deletions

View File

@@ -868,8 +868,10 @@ class Editor extends View
@renderedLines.css('padding-bottom', paddingBottom)
@gutter.lineNumbers.css('padding-bottom', paddingBottom)
@underlayer.height(@screenLineCount() * @lineHeight)
@overlayer.height(@screenLineCount() * @lineHeight)
linesHeight = @screenLineCount() * @lineHeight
@renderedLines.height(linesHeight)
@underlayer.height(linesHeight)
@overlayer.height(linesHeight)
getFirstVisibleScreenRow: ->
Math.floor(@scrollTop() / @lineHeight)